Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a,b;
- int CZY_PARZYSTA(int a){
- b=a%2;
- if(b==0){
- return 1000;
- }
- else{
- return 2000;;
- }
- }
- int main()
- {
- cout << "Podaj liczbe caΕkowitΔ : " << endl;
- cin >> a;
- if(CZY_PARZYSTA(a)==1000){
- cout << "Parzysta" << endl;
- }
- else if (CZY_PARZYSTA(a)==2000){
- cout << "Nie parzysta" << endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment