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 trialzaakir Hamzavi
Courses Plus Student 307 PointsWhat is the answer to this question? Also can you explain it.
This is what I answered what is the correct answer. int = addTwo float %d float %d
1 Answer
Stone Preston
42,016 Pointshere is a shell of what your function should look like:
returnType functionName(dataType argumentOne, dataType argumentTwo) {
return something;
}
the challenge tells you it should return a float, what to name the function, the arguments should be floats (you can name them whatever) and that it needs to return the sum of the arguments passed in to the function