hi manjiri
thanks for your suggestion
here it toring even and odd numbers in seperate arrays(ea and oa) and then i am sorting.
User Profile
Collapse
-
Code://this programmay help you #include<stdio.h> main() { int j=0,temp=0,ea[10],oa[10],i=0,e=0,o=0,n; for(i=0;i<10;i++) { printf("Enter number"); scanf("%d",&n); if(n%2==0) ea[e++]=n; else oa[o++]=n; } if(e==0) printf("No Even numbers:\n"); else { printf("Even numbers:\n");
Leave a comment:
No activity results to display
Show More
Leave a comment: