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 trialLucas Caldeira
Courses Plus Student 578 PointsFunction challenge
int addtwo(float a, float b) {return a +b;}
9 Answers
AbdelGhafour Mohie
1,876 Pointsreturn with no brackets.
Lucas Caldeira
Courses Plus Student 578 Pointsi got it thanks !
float addTwo(float a, float b) { return a + b; }
Nikita Repetun
2,829 Pointsdoesn't work with me either
Lucas Caldeira
Courses Plus Student 578 Pointstry this !
float addTwo(float a, float b) { return a + b; }
Nikita Repetun
2,829 Pointsfloat addTwo(float a, float b) return a + b; is this right?
Nikita Repetun
2,829 PointsThank you very much !!!! I've almost lost my brain =)
Lucas Caldeira
Courses Plus Student 578 Pointsknow how that feels lmao ;P
AbdelGhafour Mohie
1,876 PointsUsually if you can't solve a challenge try it in xcode, there is 80% chance it will tell you what's wrong.
Nikita Repetun
2,829 PointsThank you, but for the problem was to fully understand what they want from me. I wrote all right, but the difference was that i wrote return on the second line =)