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

glkink / C-programming

  • 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 987bb699 authored 3 years ago by glkink's avatar glkink
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

Add new file

parent c6c884da master
Hide whitespace changes
Inline Side-by-side
Showing with 26 additions and 0 deletions
  • paarispaaritu
paarispaaritu 0 → 100644
View file @ 987bb699
#include <stdio.h>
int main()
{
int arr[100],i,num;
printf("Sisestage massiivi suurus\n");
scanf("%d",&num);//loeb massiivi suuruse jaoks kasutaja sisendit
printf("Sisestage massiivi elemendid\n");
for(i=0; i<num; i++){
scanf("%d",&arr[i]);//loeb massiivi elementide kasutaja sisendit
}
printf("\nMassiivi paarisarvud on \n");
for(i=0; i<num; i++){
if(arr[i]%2==0){
printf("%d \t",arr[i]);
}
}
printf("\nMassiivi paaritud arvud on \n");
for(i=0; i<=num; i++){
if (arr[i]%2==1){
printf("%d \t",arr[i]);
}
}
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