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

Casting Doubles to Int

C# code walkthrough · Question 32
mediumCasting

Code

Read carefully. What does this print?
1double d = 9.99;
2int i = (int)d;
3Console.WriteLine(i);
4Console.WriteLine((int)7.5 + (int)2.5);

Your answer