Hi!
This code is very c-like, so you don't have to change much. What you'll be using is called "loops" and there's a tutorial
here, that should point you in the right direction. One tip from me: You're going to need 2 of the 3 types of loops that you'll find in that article.
Oh, and in C you don't have predefined values
true and
false, but you can either define them yourself by putting the following code in the head of your program:
- #define TRUE (1)
-
#define FALSE (0)
or you can just use
1 as true and
0 as false or you can use
to define the datatype bool which can have the values true and false... Or I'm sure there are other ways to do it too.
Greetings,
Nepomuk