something
This commit is contained in:
parent
9a2d9f07eb
commit
a00408d732
6
for.c
6
for.c
@ -13,12 +13,16 @@ int for_cyklus(){
|
||||
printf("Zadal si číslo %d.\n", target);
|
||||
printf("Cyklus FOR:\n");
|
||||
for(int i = 0; i <= target; i++){
|
||||
if(i % 2 == 1) {
|
||||
printf("%d\n", i);
|
||||
}
|
||||
printf("Cyklus WHILE:\n");
|
||||
}
|
||||
printf("\nCyklus WHILE:\n");
|
||||
int i = 0;
|
||||
while(i <= target){
|
||||
if(i % 2 == 1) {
|
||||
printf("%d\n", i);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user