CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

Casting double to int

C# quiz · Question 47
mediumVariables

What does this code print?

Code

1double d = 3.9;
2int n = (int)d;
3Console.WriteLine(n);