Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int sort(int);
- int main(){
- int input, count;
- for(count=0;count!=10;count++){
- printf("Enter 10 digits: ");
- scanf("%d", &input);
- sort(input);
- }
- printf("%d", input);
- return 0;
- }
- int sort(int inp){
- int odd[10];
- int even[10];
- if(inp%2==0){
- odd[]=inp;
- }
- else
- even[]=inp;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement