Question Locked

Did I do this function Prototype and function definition correctly??

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am to write a function prototype that divides two numbers...a function prototype that finds the larger of two numbers, and a function prototype that prints an ATM menu....then I am to build function definitions for the function prototypes.
My solution is below:

#include
/* function prototypes */
int divideTwoNumbers(int, int);
int GreatestNumber(int, int);
void PrintMenu();

main()

/* function definitions */
int divideTwoNumbers(int divOne, int divTwo);
int GreatestNumber(int greatOne, int greatTwo);
void PrintMenu();

1 reply

This discussion is closed to new replies.