write a program to input a number n and print its table
Attachments:
Answers
Answered by
6
Answer:
if it is in java then this is the answer
Explanation:
import java.util.Scanner;
public class Multiplication_Table
{
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
System.out.print("Enter number:");
int n=s.nextInt();
for(int i=1; i <= 10; i++)
{
System.out.println(n+" * "+i+" = "+n*i);
}
}
}
hope it helps
Similar questions
Social Sciences,
4 months ago
English,
4 months ago
Chemistry,
4 months ago
Chemistry,
8 months ago
English,
1 year ago
Computer Science,
1 year ago