Skip to content

Instantly share code, notes, and snippets.

@nikosbosse
Last active January 12, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikosbosse/6727cc76f3a14265475b4edadfbff494 to your computer and use it in GitHub Desktop.
Save nikosbosse/6727cc76f3a14265475b4edadfbff494 to your computer and use it in GitHub Desktop.
Introduction to C
#include <stdio.h>
int main(void){
printf("Hello World");
return 0;
}
#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