Okay, so I was asked to use functions in order to write a program that prompts the user to enter three different temperatures and then output the average of the temperatures.
It runs fine but I get garbage as the output. I am mostly having trouble with not being sure how to assign user input to the variables in the void function getTemp. This is also where i suspect the problem to be at. Any help is appreciated. Thanks in advance.
The variables declared on line 12 and the ones declared on line 23 are unconnected. Lines 28, 32, and 36 modify the values of the ones from 23, not of the ones from 12.