Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
89 views

Pseudocode of An Algorithm of Calculator Program

The algorithm first declares variables to store numeric values to operate on, the result, and the operator. It then prints the choice of operations for the user to select like addition, subtraction, multiplication or division. The variables are used to perform the selected operation and store the result.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views

Pseudocode of An Algorithm of Calculator Program

The algorithm first declares variables to store numeric values to operate on, the result, and the operator. It then prints the choice of operations for the user to select like addition, subtraction, multiplication or division. The variables are used to perform the selected operation and store the result.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Pseudocode of an Algorithm of Calculator Program

Step 1: Declare local variables n1, n2, res, opt. For example, where n1
and n2 take two numeric values, res will store results and opt variable
define the operator symbols.
Step 2: Print the Choice (Addition, Subtraction, multiplication,
division, etc.

You might also like