This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 3
3
2 . [ Shivay] ( https://github.com/shivaylamba )
4
4
3 . [ Harshit_Dongre] ( https://github.com/Harshit1020 )
5
5
<<<<<<< HEAD
6
+ <<<<<<< HEAD
6
7
=======
7
8
4 . [ Raghav] ( https://github.com/raghavdhingra )
8
9
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
10
+ =======
11
+ 3 . [ Raghav] ( https://github.com/raghavdhingra )
12
+
13
+ >>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8
Original file line number Diff line number Diff line change
1
+ <<<<<<< HEAD:contributors/Harshit1020/Armstrong.java
1
2
import java.util.Scanner;
2
3
<<<<<<< HEAD
3
4
4
5
=======
5
6
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
7
+ =======
8
+ >>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8:contributors/Harshit1020/Arm
6
9
public class ArmstrongNum {
7
10
public static void main(String[] args) {
8
- int n ;
9
- Scanner sc = new Scanner (System .in );
10
- System .out .println ("enter the value:" );
11
- n = sc .nextInt ();
11
+ int n = 153;
12
12
int temp = n;
13
13
<<<<<<< HEAD
14
14
int rem, sum =0;
@@ -22,11 +22,17 @@ public static void main(String[] args) {
22
22
sum = sum+(rem*rem*rem);
23
23
n = n/10;
24
24
}
25
- if (temp == sum ){
25
+ if(temp == sum)
26
+ {
26
27
System.out.println("number is armstrong");
27
28
}
29
+ <<<<<<< HEAD:contributors/Harshit1020/Armstrong.java
28
30
else{
29
31
<<<<<<< HEAD
32
+ =======
33
+ else
34
+ {
35
+ >>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8:contributors/Harshit1020/Arm
30
36
System.out.println("number is not armstrong");
31
37
}
32
38
=======
You can’t perform that action at this time.
0 commit comments