Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int sort(int);
  4.  
  5. int main(){
  6. int input, count;
  7.  
  8. for(count=0;count!=10;count++){
  9. printf("Enter 10 digits: ");
  10. scanf("%d", &input);
  11. sort(input);
  12. }
  13.  
  14. printf("%d", input);
  15.  
  16. return 0;
  17. }
  18.  
  19. int sort(int inp){
  20. int odd[10];
  21. int even[10];
  22.  
  23. if(inp%2==0){
  24. odd[]=inp;
  25. }
  26.  
  27. else
  28. even[]=inp;
  29.  
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement