Write a program to display a table of 5 less than 11 using DO-WHILE loop.
Answers
Answered by
1
class Table5
{
public static void main( )
{
int t=5,m=1;
System.out.println("Table of 5 ----->");
do
{
System.out.println("5 * "m+"="+(5*m));
m++;
}
while(m!=11);
}
}
Follow me for more java doubts to solve.
I m java lover.
Mark me brainlest.
Similar questions