Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int sum=0, broj;
- while (sum<=1000)
- {cin >>broj;
- if (broj%2==0 || broj%10==5) sum=sum+broj;
- }
- cout << sum-broj << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement