C
This commit is contained in:
22
learnc/learnc5.c
Executable file
22
learnc/learnc5.c
Executable file
@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int array[] = {1, 7, 4, 5, 9, 3, 5, 11, 6, 3, 4};
|
||||
int i = 0;
|
||||
|
||||
while (i < 10) {
|
||||
if (array[i] < 5){
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (array[i] < 10) {
|
||||
printf("%d\n", array[i]);
|
||||
i++;
|
||||
if (array[i] > 10){
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user