Rewrite the following program using do...while loop
public static void main()
{
int i, j;
for(i=5;i>=1;i--)
{
System.out.print(i);
}
}
Answers
Answered by
0
Explanation:
hdudveuehveueh3v3uj3i2h3
Answered by
3
Explanation:
the objective output is
5
4
3
2
1
let's rewrite using do while
int i=5:
do
{
system.out.println(i);
i--;
}
while(i>=1);
you can ignore ln if u want to coz it's not there in the given question
Similar questions