0
Review the following code snippet:
int a=4; int b=1; if ( a>b) Console.WriteLine ("a"); Console.WriteLine("b"); What output will be displayed after this code snippet is executed? a. a b. b c. a b
3 Réponses
+ 7
Alright, I reviewed it. Fyi, the answer is "ab"
+ 5
As a>b is true, "a" is printed. Then, "b" is printed. So, the output is "ab".
+ 2
int a=4;
int b=1;
if ( a>b)
{
Console.WriteLine ("a");
}
Console.WriteLine("b");
as 4>1 then it print "a"
after completing the if condition it print ”b"
the answer is
a
b