Hello, I'm VERY new to C and started learning today. I have a slight problem, this is my objective:
#5
This is what I wrote for the exercise 4 it was talking about
:
Code:
//Function to multiply two ints and return result
#include <stdio.h>
//Multiply two ints
int multiply( int x, int y)
{
int result;
result = x * y;
return result;
}
int main()
{
int answer;
answer = multiply( 10, 5);
printf("Ten multiplied by five equals %d.\n", answer);
return 0;
}
Now, I didn't fully understand what #5 was stating, so can someone help me out? I got this from a tutorial I'm reading. Thanks.