Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Commit a3e4bf4

Browse files
committed
Task19
2 parents 358678c + e63558a commit a3e4bf4

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

challengers-list.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
1. [Mrinal](https://github.com/mrinal1224)
33
2. [Shivay](https://github.com/shivaylamba)
44
3. [Harshit_Dongre](https://github.com/Harshit1020)
5+
<<<<<<< HEAD
6+
=======
7+
4. [Raghav](https://github.com/raghavdhingra)
8+
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4

contributors/Harshit1020/Armstrong.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
import java.util.Scanner;
2+
<<<<<<< HEAD
23

4+
=======
5+
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
36
public class ArmstrongNum {
47
public static void main(String[] args) {
58
int n;
69
Scanner sc = new Scanner(System.in);
710
System.out.println("enter the value:");
811
n = sc.nextInt();
912
int temp = n;
13+
<<<<<<< HEAD
1014
int rem, sum =0;
1115
while(n >0){
16+
=======
17+
int rem, sum = 0;
18+
while(n > 0){
19+
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
1220

1321
rem = n%10;
1422
sum = sum+(rem*rem*rem);
@@ -18,7 +26,12 @@ public static void main(String[] args) {
1826
System.out.println("number is armstrong");
1927
}
2028
else{
29+
<<<<<<< HEAD
2130
System.out.println("number is not armstrong");
2231
}
32+
=======
33+
System.out.println("number is not armstrong")
34+
}
35+
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
2336
}
2437
}

0 commit comments

Comments
 (0)