Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main()
- {
- int a,b,c;
- cout<<"Enter 3 numbers: ";
- cin>>a>>b>>c;
- if (a%2==0)
- cout<<a<<" is an even number"<<endl;
- if (b%2==0)
- cout<<b<<" is an even number"<<endl;
- if (c%2==0)
- cout<<c<<" is an even number"<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement