Question: Convert the while loop to a for loop int num = 10; while(num > 0) { Console.WriteLine(num); num--; }
Convert the while loop to a for loop
int num = 10; while(num > 0) { Console.WriteLine(num); num--; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
