Commit 6af74e16 by matjul

Upload New File

parent 18d7a677
Showing with 58 additions and 0 deletions
#include <stdio.h>
int main () {
int i = 0;
int x[10];
int z = 10;
for(i=0; i<10; i++) {
x[i] = i+1;
if(x[i] % 2 == 0)
printf("%i\n", x[i]);
}
for(i=0; i<10; i++) {
x[i] = i+1;
if(x[i] % 2 != 0)
printf("%i\n", x[i]);
}
for(z=9; z>=0; z--) {
printf("%i\n", x[z]);
}
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment