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

Quiz — casting to int

What does the program print (lines separated by spaces)?

C#
double a = 3.99;
double b = -3.99;
Console.WriteLine((int)a);
Console.WriteLine((int)b);