Advertisement
18126

ExampleTestNo1Ex1

Mar 22nd, 2022
890
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.     int num;
  5.     int sum = 0;
  6.     while(scanf("%d", &num) != EOF) {
  7.         if(num >= 10 && num <= 99) {
  8.             sum += num;
  9.         }
  10.     }
  11.     printf("Sum: %d\n", sum);
  12.     return 0;
  13. }
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement