Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- int main()
- {
- int liczba;
- cout << "wprowadz liczbe" << endl;
- cin >> liczba;
- if (liczba%2==0) //dzielenie modulo
- cout << "wpisana liczba jest parzysta" << endl;
- else
- cout << "wpisana liczba jest nieparzysta" << endl;
- system("PAUSE");
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement