Playground
#include <iostream> using namespace std; int main() { int a = 5, b = 10, result; result = (a>b) ? a : b; //result = 10 result = a+b+10; //result = 25 result = a+b*b; //result = 105 result = (a+b)*b; //result = 150 cout << result << endl; //pechati '150' return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!