int a=10;
while (a >8)
{
System.out.println(a);
}
a) Convert the above code to its equivalent for loop.
b) What will be the output of the above code?
c) Write the body of the above loop.
Answers
Answered by
2
Answer:
a=10;
while (a >8)
{
System.out.println(a);
}
a) Convert the above code to its equivalent for loop.
b) What will be the output of the above code?
c) Write the body of the above loop.
Explanation:
a=10;
while (a >8)
{
System.out.println(a);
}
a) Convert the above code to its equivalent for loop.
b) What will be the output of the above code?
c) Write the body of the above loop.
Attachments:
Similar questions