Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Perfect Integers and Doubles

what is it asking me to do?

I can't tell if this is asking me to pick one of the choices or if it is asking me to combine them into an equation. if that is the case howdy I do that I'm having trouble with the double / int?

1 Answer

Pierre Gadea
Pierre Gadea
4,542 Points

It's asking what the example will give you when it executes -- int x = 2.9. Look at each part closely, the variable x is declared as an int data type with a value of 2.9. Is 2.9 a number of type int? Try putting that same example in an online IDE or your local IDE and see what happens.