New course! Every coder should learn Generative AI!
Try a free lesson0
Write function prototype of a function Calc which receive two integers and returns their average
3 Answers
+ 3
Please show us your attempt first.
+ 3
The average has been calculated as:
avg = the sum of all data values / number of data values
avg = (num1+num2) / 2;
OR
sum = num1 + num2;
avg = sum / 2;
+ 3
Abdul Moqueet š
Thank you, š