write a program to print multiplication table of 2, 3, 4 ,5 using while loop for blueJ
Answers
Hello Friend!
How are you today?
I'm here to help you with your question.
So lets get started!
____________________________
This is a Java code!
____________________________
Here is my answer/code ↓
____________________________
import java.util.Scanner;
class Tables
{
void main(String args[])
{
int a, b, c, d;
System.out.println("Enter the numbers to print their multiplication tables");
Scanner in = new Scanner(System.in);
a = in.nextInt();
b = in.nextInt();
for (c = a; c <= b; c++) {
System.out.println("Multiplication table of "+c);
for (d = 1; d <= 10; d++) {
System.out.println(c+"*"+d+" = "+(c*d));
}
}
}
}
______________________________
Hope this helps you!
If not let me know.
Have a good day!
@BrainlyTech
Answer:
write a program to find the sum of the following series