write a java program to print a table of a integer using does- while loop
Answers
Answered by
0
// Java Program to Print Multiplication Table
import java.util.Scanner;
public class MultiplicationTable {
private static Scanner sc;
public static void main(String[] args)
{
int number, i, j;
sc = new Scanner(System.in);
System.out.print(" Please Enter any Number : ");
number = sc.nextInt();
for(i = number; i < 10; i++)
{
for(j = 1; j <= 10; j++)
{
System.out.println(i +" * " + j + " = " + i * j);
}
System.out.println("================");
}
}
}
Similar questions