Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main(){
- int a = 5;
- int b = 6;
- string result;
- b==a ? (result = "YES") : (result = "NO");
- cout << "B it's equal a A? " << result << endl;
- b<a ? (result = "YES") : (result = "NO");
- cout << "B it's less than A? " << result << endl;
- b>a ? (result = "YES") : (result = "NO");
- cout << "B it's biger than A? " << result << endl;
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment