Convert the following while into for loop i=0
while(i<10):
print(i)
x=1
print(“the value if x is unchanged “,x)
i = i +2
Answers
Answered by
0
Answer:
print(i) .............
Answered by
0
Explanation:
int i;
Scanner in=new Scanner (System.in);
for(i=0;i<10;i++)
{
i=i+2;
System.out.println" "+i);
x=1;
System.out.println" "+x);
}
Similar questions