- 1

Write a program to print multipication table of 2, 3 ,4,5 using while loop.

Plz give the answer

24th Jan 2017, 12:19 PM
jatin arora
2 ответов
0
[X] done. Look at my codes -> "Multiplication Table" you can easily replace the for-loops by while-loops.
24th Jan 2017, 12:38 PM
bem
bem - avatar
0
public class Program { public static void main(String[] args) { int i = 2; while(i<=5){ System.out.println("Multiplication Table ("+i+")"); int a = 1; while(a< 13){ System.out.println(a+" x "+i+" = "+a*i); a++; } i++; } } }
25th Jan 2017, 3:35 AM
lowshuen