F&A Diskussionen
How to be active on sololearn ?
4 Stimmen
1 Antworti need c++ program does EXAMPLE: If the user entered the #โs: 999, 90,78,82,and 999
the output would be
AVERAGE = 250/3 = 83.3 AVERAGE WITH LOWEST DROPPED = 172/2 = 86.0
AVERAGE WHERE HIGHEST COUNTS TWICE =340/4 = 85.0
NOTE: Validate the input as being a plausible test score and require the user to reenter when not plausible.
1 Stimme
7 AntwortenIn the continue Loop -
i = 0
while True:
i = i +1
if i == 2:
print("Skipping 2")
continue
if i == 5:
print("Breaking")
break
print(i)
print("Finished")
It shows the output being
"1
Skipping 2
3
4
Breaking
Finished"
Why are the last three lines not
"Breaking
5
Finished"
Where it shows print(i) after break?
1 Stimme
3 AntwortenHeute heiร
[off-topic]Where is Result??
2 Votes
I really need a tutor
1 Votes
Mentor rank
2 Votes
โโฅ
2 Votes
Cpp
1 Votes
Why does it disappear?
0 Votes
developpement
2 Votes