Advertisement
cd62131

Sum

Feb 22nd, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. #include <stdio.h>
  2. int main(void) {
  3.   int a, sum = 0;
  4.   while(~scanf("%d", &a)) sum += a;
  5.   printf("%d\n", sum);
  6.   return 0;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement