Write function prototype of a function Calc which receive two integers and returns their average | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write function prototype of a function Calc which receive two integers and returns their average

10th Feb 2019, 3:59 PM
Manvi Jaiswal
Manvi Jaiswal - avatar
3 Answers
+ 3
Please show us your attempt first.
10th Feb 2019, 4:16 PM
Lambda_Driver
Lambda_Driver - avatar
+ 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;
10th Feb 2019, 7:19 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 3
Abdul Moqueet šŸ‘ Thank you, šŸ˜Š
10th Feb 2019, 7:34 PM
Danijel Ivanović
Danijel Ivanović - avatar