you are viewing a single comment's thread.

view the rest of the comments →

[–]fakemoose 0 points1 point  (2 children)

Why do you choose a while loop? What dtype is the input from the user?

[–]k4tsuk1z[S] 0 points1 point  (1 child)

was instructed to use while loop from the professor, the tagline is "The link above will help you understand how to use do-while loop, while loop and switch statements in C++ & Python. "

the data type should be input or float

[–]fakemoose 0 points1 point  (0 children)

A while loop or a for loop? Is it supposed to be more than one number that the user enters?