+ 2
Why the output of following result in 42
int a=4; int b=2; console.Write(a); console.Wite(b);
5 Réponses
+ 15
(Because I, 42, am the answer 😎)
Be careful, the last line should say console.Write(b);
And if this is C#, console should be Console.
Sorry for nit-picking 😃
+ 9
Because it's the answer to life, the universe and everything :)
+ 5
because you have told it to output 4 and then immediatley after have told it to output 2 with no newline or space between them.
+ 2
Because you are not adding a line break
+ 2
tanx