Program to find the multiplication table of entered number

Program:
import java.util.*;
class Table

{public static void main(String args[])
{
int n;
Scanner sc=new Scanner(System.in);
System.out.print("Enter the number : ");
n=sc.nextInt();
for(int i=1;i<=10;i++)
{
System.out.println(n+"*"+i+"="+(i*n));
}
}
}
Output:


Comments

Popular posts from this blog

Sequential File Allocation

Indexed File Allocation method

Linked File Allocation