1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #include<stdio.h> main () { int n[20],i,j; printf("Enter any 20 number\n"); for(i=0;i<=19;i++) scanf("%d",&n[i]); printf("value you entered are:\n"); for(j=0;j<=19;j++) printf("%d\n",n[j]); printf("Even Number are \n"); for(i=0;i<=19;i++) if(n[i]%2==0) printf("%d\t",n[i]); } |
Subscribe to:
Post Comments
(
Atom
)
Post a Comment