Contact: aviboots(AT)netvision.net.il
41,656 questions
54,319 answers
573 users
#include <iostream> int main() { int n = 7 > 4 ? 9 : 3 > 4 ? 20 : 6; std::cout << n << '\n'; n = 3 > 4 ? 9 : 5 > 7 ? 20 : 18; std::cout << n << '\n'; } /* run: 9 18 */
#include <iostream> int main() { int a = 10; int b = a > 10 ? 24 : a > 5 ? 7 : 1; std::cout << b; } /* run: 7 */