Skip to content
menu
arrow_back
CJ
Coding With Joseph
search
light_mode
Light
desktop_windows
System
dark_mode
Dark
bolt
15
free / day
Sign in
Create account
←
Back to Code Walkthrough
Casting Doubles to Int
C# code walkthrough · Question 32
medium
Casting
Code
Read carefully. What does this print?
1
double
d
=
9.99
;
2
int
i
=
(
int
)
d
;
3
Console
.
WriteLine
(
i
)
;
4
Console
.
WriteLine
(
(
int
)
7.5
+
(
int
)
2.5
)
;
Your answer
What will this code output?
Submit answer
←
Previous
Next
→
home
Home
grid_view
Problems
calendar_today
Daily
workspace_premium
Pricing
menu
Menu