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

iOS

cannot figure out this simple adding two float int together

int addTwo(int a, int b);

int a = 5; int b = 7; printf("addTwo %d", addTwo, (a b)); return a + b;

2 Answers

all you need to do is implement the function. nothing else. here is a shell of what your function should look like:

returnType functionName(dataType parameterOne, dataType parameterTwo) {

return something

}

the challenge tells you what the return type should be, what the function should be named, the data type and number of arguments, and that it needs to return the sum of the arguments passed in to the function.

thanks