Blog

What is the output of the code below?

bool b = true;
bool f = false;
int x = b ? 100 : 0;
int y = f ? 0 : 100;
Console.WriteLine(x + y);