Computer Science, asked by npschauhan4, 2 months ago

write a program to print the table of a given number. the number has to be entered by the user. ​

Answers

Answered by AltamasFazal
2

Answer:

This will show the table till 10, you can increase.

Java:

class Table

{

public static void main(int n)

{

int i, sum=0;

for(i=10; i>0;i--)

{

sum += n;

System.out.println(sum);

}

}

}

Similar questions