Hi all :). I am new to these forums as I am taking a Web Programming Course at Kent State University for a non-major class and i am struggling!
I have to:
Write a function named “BIGGER” that accepts 2 parameters. The function will be declared this way:
function BIGGER($parameter1,$parameter2) {
My code is here below:
[php]function BIGGER($parameter1, $parameter2) {
if ($parameter1 > $parameter2) {
return parameter1;
//this is an if function that compares the two numbers
} else {
return $parameter2;
};
//the function is now over and will display the higher one
};
//whatever number is higher will appear because of the function[/php]
I believe i am being told it is wrong because of the return function is wrong, if anyone is willing to help I’d really appreciate it!
Have a good day