write a program to input a number and print the table of that number using while loop in Java
Answers
Answered by
6
Answer:
Java Program to Print Multiplication Table for any Number
public class Multiplication_Table.
Scanner s = new Scanner(System.
System. out. print("Enter number:");
int n=s. nextInt();
for(int i=1; i <= 10; i++)
System. out. println(n+" * "+i+" = "+n*i);
Explanation:
hope it will help you
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Chemistry,
2 months ago
Math,
6 months ago
Physics,
11 months ago
Accountancy,
11 months ago