Skip to content

Commit 1484536

Browse files
Merge pull request #3 from Ublinix/main
Added Proper Variable annotation
2 parents 0bb92cf + 2efecf8 commit 1484536

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Armstrong-Numbers/Armstrong.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*What is a Armstrong Number?*/
2-
/*Well in case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself*/
2+
/*Well in case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself.*/
33

44
import java.util.Scanner;
55

Fizz-Buzz/FizzBuzz.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ public class FizzBuzz {
44
public static void main(String[] args) {
55
Scanner input = new Scanner(System.in);
66
System.out.println("Enter no. to view FizzBuzz : ");
7-
int nums = input.nextInt();
7+
int num = input.nextInt();
88

9-
for (int i = 1; i <= nums; i++)
9+
for (int i = 1; i <= num ; i++)
1010
{
1111
if (i%5 == 0 && i%3 == 0)
1212
System.out.println("FizzBuzz");

0 commit comments

Comments
 (0)