Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- int a,b,c;
- cout<<"Enter numbers\n";
- cin>>a>>b;
- if(a>b)
- cout<<"The greater value is "<<a<<endl;
- else
- cout<<"The greater value is "<<b<<endl;
- if(a>100)
- if (a%2==0)
- cout<<a<<"Even"<<endl;
- else
- cout<<a<<"Is Odd"<<endl;
- if(b>100)
- if(b%2==0)
- cout<<b<<"Is Even"<<endl;
- else
- cout<<b<<"Is Odd"<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement