4- Rewrite the following piece of code using a for loop. (20p)
int i = 1;
int n = 12;
while (i
{
if (i%5)
continue;
total+=i;
printf("i=%d and total=%d\n", i, total);
++i;
}
Answers
Answered by
1
Answer:
your code is wrong bro. Recheck the line where you applied while loop.
Explanation:
No condition inside. This will throw an error
Similar questions