CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Ternary Picks the Smaller Value

C# code walkthrough · Question 7
easyConditionals

Code

Read carefully. What does this print?
1int a = 8, b = 5;
2int min = (a < b) ? a : b;
3Console.WriteLine(min);

Your answer