I'm new to programming! I'm trying to calculate the area of a rectangle with the length and width already passed as parameters (6, 4), but all my program does so far is display the message, but not calculate anything. Not sure if I called the function getArea properly in my main? Or is it something else? Any help would be great!
getArea is defined as a function, it is therefore why you must pass arguments to it every time you call it.
Why would you expect the program to go to line 21 before all others first, remember the value the defined function returned and then display it among with the comment in line 18?