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
History,
26 days ago
Accountancy,
26 days ago
Math,
1 month ago
World Languages,
1 month ago
Math,
8 months ago
Math,
8 months ago