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 trialHarry Maria
3,694 PointsStage 2 Code Functions
I'm having trouble figuring out this problem. The example that we received to explain function is a integer. What am I missing??
Are we suppose to declare the function? (I'm assuming yes)
Do we start AddTwo as a int or float?
Thanks anyone!
2 Answers
Dino Paškvan
Courses Plus Student 44,108 PointsThe parameters of that function are floats, and the function returns their sum (which will also be a float). That should give you a clue about how you declare the function.
Harry Maria
3,694 PointsThanks Dino,
After searching on-line, I found out I was doing to much. When the question basically wanted me to answer with 3 "statements"
By the way I'm just starting to learn how to program. I'm actually a New York City Apartment Broker and have a great idea for an app the will make everyone's life easier. If you're interested. email: RentSign@gmail.com