Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n;
- cout << "Vnesi cel broj: ";
- cin >> n;
- if (n < 0) {
- cout << "Brojot " << n << " e negativen!" << endl;
- } else {
- if (n % 2 == 0) {
- cout << "Brojot " << n << " e pozitiven i paren!" << endl;
- } else {
- cout << "Brojot " << n << " e pozitiven i neparen!" << endl;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment