We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0bb92cf + 2efecf8 commit 1484536Copy full SHA for 1484536
2 files changed
Armstrong-Numbers/Armstrong.java
@@ -1,5 +1,5 @@
1
/*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*/
+/*Well in case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself.*/
3
4
import java.util.Scanner;
5
Fizz-Buzz/FizzBuzz.java
@@ -4,9 +4,9 @@ public class FizzBuzz {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
6
System.out.println("Enter no. to view FizzBuzz : ");
7
- int nums = input.nextInt();
+ int num = input.nextInt();
8
9
- for (int i = 1; i <= nums; i++)
+ for (int i = 1; i <= num ; i++)
10
{
11
if (i%5 == 0 && i%3 == 0)
12
System.out.println("FizzBuzz");
0 commit comments