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

Commit ab28bd5

Browse files
committed
Challenge19
2 parents a3e4bf4 + abeae5b commit ab28bd5

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

challengers-list.md

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
2. [Shivay](https://github.com/shivaylamba)
44
3. [Harshit_Dongre](https://github.com/Harshit1020)
55
<<<<<<< HEAD
6+
<<<<<<< HEAD
67
=======
78
4. [Raghav](https://github.com/raghavdhingra)
89
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
10+
=======
11+
3. [Raghav](https://github.com/raghavdhingra)
12+
13+
>>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8

contributors/Harshit1020/Armstrong.java renamed to contributors/Harshit1020/Arm

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
<<<<<<< HEAD:contributors/Harshit1020/Armstrong.java
12
import java.util.Scanner;
23
<<<<<<< HEAD
34

45
=======
56
>>>>>>> e63558a40507f428c82b1f4c4100314a4125a9e4
7+
=======
8+
>>>>>>> abeae5b1ec0e4478f5fcf1d52c70dea7f32eb1a8:contributors/Harshit1020/Arm
69
public 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
=======

0 commit comments

Comments
 (0)