Write function prototype of a function Calc which receive two integers and returns their average | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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