CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Integer Division Before Widening

C# code walkthrough · Question 12
mediumCasting

Code

Read carefully. What does this print?
1int a = 5, b = 2;
2double avg = (a + b) / 2;
3Console.WriteLine(avg);

Your answer