Question: b) rewrite the following while loop as for loop. int c=3; while(c
b) rewrite the following while loop as for loop.
int c=3;
while(c<=21)
{ if(c%3==0||c%5==0)
cout< c++ }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
