Computer Science, asked by masterman221, 8 months ago

write a program to input a number n and print its table​

Attachments:

Answers

Answered by smriddhidevnath
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