PGhosh

C prob, (T13)

Mar 30th, 2014
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int a,b,c,sum;
  6.     scanf("%d", &a);
  7.     while(a>0){
  8.         scanf("%d %d", &b, &c);
  9.         sum=b+c;
  10.         printf("%d", sum);
  11.     }
  12.     return 0;
Advertisement
Add Comment
Please, Sign In to add comment