write a program to print a table of 5 using do while loop in java
Answers
Answered by
1
class table
{
public static void main( )
{
int a=5; int I=1;
do
{
System.out.println(a+"×"+I=(a*I));
I++;
}while(I<10);
}
}
Anonymous:
he asked for while loop
Answered by
3
class Table
{
public static void main()
{
int n=1;
while(n<=10)
{
System.out.println(5*n);
n++;
}
}
}
HOPE THIS HELPS...
pls mark as BRAINLIEST!
:)
{
public static void main()
{
int n=1;
while(n<=10)
{
System.out.println(5*n);
n++;
}
}
}
HOPE THIS HELPS...
pls mark as BRAINLIEST!
:)
Similar questions