wap to input any number and generate it's table
Answers
Answered by
1
very important for the computer
Answered by
0
import java.util.*;
class Table
{
public static void main(String[] args)
{
int num, i;
Scanner sc=new Scanner(System.in);
System.out.println("Enter number: ");
num=sc.nextInt();
System.out.println("Table of "+num+" is: ");
for(i=1; i<=10; i++)
System.out.println ( num+" * " + i + " =" + (num*i));
}
}
Similar questions