Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

ilahma / iax0583

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 477ce0c7 authored 6 years ago by ilahma's avatar ilahma
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Upload New File

parent 70cdafd9 master
Hide whitespace changes
Inline Side-by-side
Showing with 45 additions and 0 deletions
  • Lab3/lab3firsttask.c
Lab3/lab3firsttask.c 0 → 100644
View file @ 477ce0c7
#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;
}
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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