Computer Science, asked by yadavankita8581, 11 months ago

Rewrite the following code fragment using for loop. num-20 while(num ; 0): count += 1 sum += mum num=2 if(count 10): print(sum//count) Break

Answers

Answered by arinwal
5

Answer:

EASY PEAS LEMON SQUEAKY

If two or more values are equal, the program still prints the lowest value. Because only less than comparisons are made, the comparison of two equal values produces a false result. If two values are equal, and lower than the third value, then one of the two lower but equal values is printed. If all three values are equal, then this value is printed. Which "version" of the equal value is irrelevant.

If only two values are equal, it does not matter whether the third is lower or higher. The correct result is determined in either case. If the two equal values are lower than the third, then one of the two lower but equal values is printed. If the two equal values are higher than the third, then the third value is printed.

Similar questions