Skip to content

Instantly share code, notes, and snippets.

@kammly
Created December 9, 2018 16:41
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 kammly/a34a31f3e709777fdcc9332494415420 to your computer and use it in GitHub Desktop.
Save kammly/a34a31f3e709777fdcc9332494415420 to your computer and use it in GitHub Desktop.
Nauka
#include <stdio.h>
//wygeneruj liczby od 1 do 100 z wylaczeniem przedzialu 60-70
//uzyj instrukcji zaklocajacych
int main(){
int i;
for(i=1; i<101; i++) {
printf("%d", i);
printf("\n");
if (i>58){ //jestli i jest rowne 59 to koniec petli
break;
}
}
for(i=71; i<101; i++) { //wznowienie przy i=71
printf("%d", i);
printf("\n");
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment