Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #define num1 500
- #define num2 600
- int main()
- {
- num1<num2 ? cout<<"Sim "<<num1<<" e menor"<<" que "<<num2<<" !" : cout<<"Nao e menor"<<endl;
- int res;
- num1<num2 ? (res = 10) : (res =0);
- cout<<endl;
- cout<<res<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement