Advertisement
PGhosh

1001 (a)

Apr 16th, 2014
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a,b,n,i,sum;
  6.     scanf("%d", &n);
  7.     for(i =0 ; i <n ; i++){
  8.         scanf("%d", &sum);
  9.         a=sum/2;
  10.         b=sum-a;
  11.         printf("%d %d\n", a,b);
  12.     }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement