Computer Science, asked by Student42280, 2 months ago

write a program to output a multiplication table by accepting the first multiple and the last multiple and display the table in a proper format. Using java ​

Answers

Answered by parthnevase24
1

Answer:

public class Main

{

public static void main(String[] args)

{

 int num, end;

 Scanner sc = new Scanner(System.in);

 num = sc.nextInt();

 end = sc.nextInt();

 int i;

 for(i = 1; i <= end; i++)

 {

  System.out.println(num + ” * ” + i + ” = ” + num*i);

 }

}

}

Similar questions