Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int a, n, i = 0;
- cout << "Introdu n: ";
- cin >> n;
- while(i < n)
- {
- cout << "Introdu a: ";
- cin >> a;
- if (a % 2 == 0)
- {
- cout << "OK" << endl;
- }
- else
- {
- cout << "nu e par." << endl;
- }
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment