+10

can u find whats wrong with this code??

this code is to calculate an average https://code.sololearn.com/c1U0cYwt5Pq7/?ref=app https://code.sololearn.com/c1U0cYwt5Pq7/?ref=app

11/19/2019 7:56:12 AM

shahizul muizz syamin bin kahimin

2 Answers

New Answer

+7

You are not decreasing or increasing the variable "number" inside the while loop then how will your while loop terminate? It is true always so kindly make changes.

+1

You are not update value of "number "that is counter variable that required for increass or decreass the value for execution of while loop