Created
December 9, 2018 16:41
-
-
Save kammly/a34a31f3e709777fdcc9332494415420 to your computer and use it in GitHub Desktop.
Nauka
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> | |
//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