+ 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

19th Nov 2019, 7:56 AM
shahizul muizz syamin bin kahimin
shahizul muizz syamin bin kahimin - avatar
2 Respostas
+ 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.
19th Nov 2019, 8:10 AM
Avinesh
Avinesh - avatar
+ 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
20th Nov 2019, 1:31 AM
mukesh gupta
mukesh gupta - avatar