import java.util.Scanner;
public class ClassName {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter a number ");
int num = sc.nextInt();
System.out.println("\nTable of " + num);
for (int i = 1; i <= 10; i++) {
System.out.println(num + "*" + i + "=" + num * i);
}
}
}
Enter a number 18
Table of 18
18*1=18
18*2=36
18*3=54
18*4=72
18*5=90
18*6=108
18*7=126
18*8=144
18*9=162
18*10=180
Copyright © 2023 - Proleed Academy | All Rights Reserved.