Computer Science, asked by palak522, 1 year ago

wap to input any number and generate it's table

Answers

Answered by rajveer0852singh
1
very important for the computer
Answered by chini238
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