Loop Problem 4 : Multiplication Table of 4 in Reverse Order

Suman Barik
0

 // Use this editor to write, compile and run your Java code 


public class HelloWorld {

public static void main(String[] args) {

    // Practice Problem 4

        int n = 10;

        //for(int i=0; i<10; i++) - Goes from i=0 to i=9

        for(int i=10;i>=1;i--){

            System.out.printf("%d X %d = %d\n", n, i, n*i);

        }

}

}

Post a Comment

0Comments
Post a Comment (0)