Question: Rewrite the code to use the for statement. int num = 6; while (num >= 0) { cout < < num < < endl; num
Rewrite the code to use the for statement. int num = 6; while (num >= 0) { cout << num << endl; num -= 2; } //end while
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
