Computer Science, asked by singhchauhanabhay56, 8 months ago

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 navalkishor6572
0

Answer:

print(i) .............

Answered by sidhantsky
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