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
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
CBSE BOARD XII,
1 month ago
Math,
2 months ago
World Languages,
2 months ago
Math,
10 months ago
Math,
10 months ago