File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
44import java .util .Scanner ;
55
Original file line number Diff line number Diff 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" );
You can’t perform that action at this time.
0 commit comments