What will be the output of the following code?
Asked 20-Sep-2024
Updated 01-Oct-2024
Viewed 257 times
int x = 5;
if (x > 3 && x < 7)
x++;
else
x--;
Console.WriteLine(x);
int x = 5;
if (x > 3 && x < 7)
x++;
else
x--;
Console.WriteLine(x);