-2

I need to design a Do-While loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; other-wise it should terminate.

This needs to be done in Python pseudocode, which makes absolutely no sense to me because why not use Python in the first place?

Thanks

4

1 回答 1

3
While True
    ask user for input1
    ask user for input2
    display input1 + input2
    ask user if they want to go again
    if no then exit
于 2013-10-07T19:16:55.717 回答