Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main ()
- {
- int Digit = 0;
- cout << "Vedite chislo: ";
- cin >> Digit;
- if (Digit < 131 && Digit > 90)
- {
- if (Digit % 3 == 0)
- cout << "Vashe chislo " << Digit << " kratne 3";
- if (Digit % 7 == 0)
- cout << "Vashe chislo " << Digit << " kratne 7";
- else
- cout << "Vashe chislo ne kratne 3 abo 7";
- }
- else
- cout << "Vashe chislo ne vhodit v diapazon 131...90\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement