Convert the following programs using keyword while
class simple_loop
{
public static void main()
{
int i;
for(i=1;i<=20;i++)
{
System.out.println(i);
}
}
}
Answers
Answered by
0
Answer:
20
Explanation:
as this will run till 20 so the answer is 20
Similar questions