Obtain two numbers from the keyboard compute their sum and


Question: Formulate a pseudocode algorithm for each of the following:

a) Obtain two numbers from the keyboard, compute their sum and display the result.

b) Obtain two numbers from the keyboard, and determine and display which (if either) is the larger of the two numbers.

c) Obtain a series of positive numbers from the keyboard, and determine and display their sum. Assume that the user types the sentinel value -1 to indicate "end of data entry."

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Obtain two numbers from the keyboard compute their sum and
Reference No:- TGS02403614

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)