Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int Digit = 0;
  7. cout << "Vedite chislo: ";
  8. cin >> Digit;
  9. if (Digit < 131 && Digit > 90)
  10. {
  11. if (Digit % 3 == 0)
  12. cout << "Vashe chislo " << Digit << " kratne 3";
  13. if (Digit % 7 == 0)
  14. cout << "Vashe chislo " << Digit << " kratne 7";
  15.  
  16. else
  17. cout << "Vashe chislo ne kratne 3 abo 7";
  18. }
  19. else
  20. cout << "Vashe chislo ne vhodit v diapazon 131...90\n";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement