Skip to content
Quiz · Variables and types · lesson 4 of 8

Quiz — 2.5 into an int

What happens when this program is compiled and run?

C#
int x = 2.5;
Console.WriteLine(x);