Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int Digit = 0;
  7. bool Flag = true;
  8. cout << "Vedite chislo: ";
  9. cin >> Digit;
  10. if (Digit < 131 && Digit > 90 && true == (Digit % 3 == 0) || false == (Digit % 7 == 0))
  11. cout << "Vashe chislo " << Digit << " kratne 3";
  12. else
  13. cout << "Vashe chislo " << Digit << " kratne 7";
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement