Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cout << "Shtyp numrin : " << endl;
- cin >> n;
- switch (n % 2)
- {
- case 0:
- if (n == 2)
- {
- cout << "Numer i thjeshte";
- }
- else
- cout << "Numer jo i thjeshte";
- break;
- case 1:
- if (n % 3 == 0)
- {
- cout << "Numer jo i thjeshte";
- }
- else if (n % 5 == 5)
- {
- cout << "Numer jo i thjeshte";
- }
- else
- {
- cout << "Numer i thjeshte";
- }
- break;
- default:
- cout << "Default";
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement