Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

multiplication table using while loop in java

public class MultiplicationTable {

    public static void main(String[] args) {

        int num = 9, i = 1;
        while(i <= 10)
        {
            System.out.printf("%d * %d = %d 
", num, i, num * i);
            i++;
        }
    }
}
 
PREVIOUS NEXT
Tagged: #multiplication #table #loop #java
ADD COMMENT
Topic
Name
3+3 =