Commit 477ce0c7 by ilahma

Upload New File

parent 70cdafd9
Showing with 45 additions and 0 deletions
#include<stdio.h>
int main() {
int i=0, number[10];
for(i=0; i<10; i++){
number[i]=i+1;
printf("%d\n", number[i]);
}
for(i=0; i<10; i++)
{
if(number[i]%2==1)
{
printf("%d\n",number[i]);
}
}
printf("\n");
for(i=0; i<10; i++)
{
if(number[i]%2==0)
{
printf("%d\n",number[i]);
}}
printf("\n");
for(i=9; i>=0; i--)
{
printf("%d\n",number[i]);
}
printf("\n");
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