This repository was archived by the owner on Aug 30, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 332 . [ Shivay] ( https://github.com/shivaylamba )
443 . [ Harshit_Dongre] ( https://github.com/Harshit1020 )
55<<<<<<< HEAD
6+ <<<<<<< HEAD
67=======
784 . [ Raghav] ( https://github.com/raghavdhingra )
89>>>>>>> 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
12import java.util.Scanner;
23<<<<<<< HEAD
34
45=======
56>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
7+ =======
8+ >>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8:contributors/Harshit1020/Arm
69public class ArmstrongNum {
710 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;
1212 int temp = n;
1313<<<<<<< HEAD
1414 int rem, sum =0;
@@ -22,11 +22,17 @@ public static void main(String[] args) {
2222 sum = sum+(rem*rem*rem);
2323 n = n/10;
2424 }
25- if (temp == sum ){
25+ if(temp == sum)
26+ {
2627 System.out.println("number is armstrong");
2728 }
29+ <<<<<<< HEAD:contributors/Harshit1020/Armstrong.java
2830 else{
2931<<<<<<< HEAD
32+ =======
33+ else
34+ {
35+ >>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8:contributors/Harshit1020/Arm
3036 System.out.println("number is not armstrong");
3137 }
3238=======
You can’t perform that action at this time.
0 commit comments