Write a program to print multipication table of 2, 3 ,4,5 using while loop. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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 Answers
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