kilolilo

Untitled

Sep 29th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a=0, sum=0;
  6. for (a=51;a<500;a+=2){
  7. if(a%7==0){
  8. sum+=a;
  9. }
  10. }
  11. cout<<sum<<endl;
  12. }
Add Comment
Please, Sign In to add comment