- 1
Write a program to print multipication table of 2, 3 ,4,5 using while loop.
Plz give the answer
2 odpowiedzi
0
[X] done.
Look at my codes -> "Multiplication Table"
you can easily replace the for-loops by while-loops.
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++;
}
}
}