Created
January 12, 2020 13:04
-
-
Save nikosbosse/4b848794f5e667ed839de90edb946ee9 to your computer and use it in GitHub Desktop.
Intro to C-programming: While-Loops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void){ | |
int counter = 0; | |
int t = 1; | |
while (t){ | |
counter++; | |
printf("counter: %d\n", counter); | |
if (counter == 5){ | |
t = 0; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment