What will be printed out as a result of the following code execution:
 i
nt sum = 0; f
or (int i = 0; i < 3; i++) 
{ 
    sum += i; 
} 
Console.WriteLine("Sum of "+ i +" numbers is " +sum); 

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes