Write a function that computes the average of the digits in an integer. Use fun header (double average Digits(long n)) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 3

Write a function that computes the average of the digits in an integer. Use fun header (double average Digits(long n))

Funtions in c++

11th Nov 2021, 2:34 PM
Emmanuel Kiprotich
Emmanuel Kiprotich - avatar
2 Answers
+ 3
Emmanuel Kiprotich , did you already made a try to solve the task? if yes, please post it here. otherwise please do a try by yourself and then post it here. we are going to support you, but without having seen your code, it is difficult to find out where you get stuck. thanks!
11th Nov 2021, 4:43 PM
Lothar
Lothar - avatar
+ 2
Mmh ok am gonna post it
11th Nov 2021, 5:23 PM
Emmanuel Kiprotich
Emmanuel Kiprotich - avatar