0
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
6 Answers
+ 5
You mean user will keep entering numbers until he doesn't terminate the loop himself and then calculate their average?
0
Here you go:
https://code.sololearn.com/cR0pIqpyasFs/?ref=app
You can change the termination value on line 7.
0
not my point
0
we hv todo smthng without condition
0
What about now?
https://code.sololearn.com/cR0pIqpyasFs/?ref=app
0
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