Preview:
#include <iostream>
using namespace std;
int main(int argc, char **argv)
{
	cout << "嗨客网(www.haicoder.net)\n" << endl;
	//三目运算符嵌套使用
	int a = 100, b = 200, c = 300;
	int retValue = a > b ? (a > c ? a : c)  : (b > c ? b : c);
	cout << "MaxValue = " << retValue << endl;
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter