Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main() {
- int num;
- int sum = 0;
- while(scanf("%d", &num) != EOF) {
- if(num >= 10 && num <= 99) {
- sum += num;
- }
- }
- printf("Sum: %d\n", sum);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement