This is the solution of the problem in python: Sum=0count=0while(1): X=int(input()) if(0>X): break else: Sum=Sum+X count+=1ave=Sum/count print("%.2f"%ave)
Good Post. I like your blog. Thanks for Sharing good information.
ReplyDeletePython training in Noida