Rewrite the following statements including the while-stateme…
Rewrite the following statements including the while-statement so it does the same calculation but uses only a for-statement: no while-statements are allowed: sum=0num = 1000while num > 500: if num % 5 == 0: sum = sum + num num = num – 2
Read Details