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 +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 221 . [ Mrinal] ( https://github.com/mrinal1224 )
332 . [ Shivay] ( https://github.com/shivaylamba )
443 . [ Harshit_Dongre] ( https://github.com/Harshit1020 )
5+ <<<<<<< HEAD
6+ =======
7+ 4 . [ Raghav] ( https://github.com/raghavdhingra )
8+ >>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
Original file line number Diff line number Diff line change 11import java .util .Scanner ;
2+ <<<<<<< HEAD
23
4+ =======
5+ >>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
36public 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}
You can’t perform that action at this time.
0 commit comments