PGhosh

C Light OJ prob

Mar 30th, 2014
171
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,T,sum;
  6.     fscanf(stdin,"%d", &T);
  7.     while(T>0){
  8.         T=T-1;
  9.         fscanf(stdin,"%d %d", &a, &b);
  10.         sum=a+b;
  11.         printf("%d", sum);
  12.  
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment