Quantcast
Channel: C - Codecademy Forums
Viewing all articles
Browse latest Browse all 25

All "for" loops can be a "while" but not all "while" loops can be a "for"?

$
0
0

The C programming language is everywhere, and learning it will help you become a better programmer ready for the next challenge in any field of computer science!

Hi I was doing the following quiz where it told me I was wrong and the correct answer would be:

https://www.codecademy.com/courses/learn-c/quizzes/loops-and-errors-quiz-c

All “for” loops can be a “while” but not all “while” loops can be a “for”?

Is that true? I learned in Python that all fors can be rewritten as whiles and vice-versa. what is different in c?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 25

Trending Articles