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:Write a C program that calls the C function you just wrote in exercise 4 to calculate the multiplication of 3 times 5 and then print out the return value from the function on the screen.
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.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; }