To calculate average | Sololearn: Learn to code for FREE!


To calculate average

how to calculate average of numbers entered by user where no limit is given nd no option to ask user to enter the loop will exit by number itself

9/12/2018 12:10:01 PM

Sourabh Singh

6 Answers

New Answer


You mean user will keep entering numbers until he doesn't terminate the loop himself and then calculate their average?


Here you go: You can change the termination value on line 7.


not my point


we hv todo smthng without condition


What about now?


bro i did the same but the challenge i got is to do in a simple way without using array nor any conditional variable. all the task is to be done by the number itself