0% found this document useful (0 votes)
3 views2 pages

Basic Arithmetic Operations Program

The document outlines an algorithm for performing basic arithmetic operations (addition, subtraction, multiplication, and division) on two input numbers. It includes a step-by-step process for computing the results and a flowchart representation of the operations. The program is designed to read two numbers and display the results of the computations.

Uploaded by

human race
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Basic Arithmetic Operations Program

The document outlines an algorithm for performing basic arithmetic operations (addition, subtraction, multiplication, and division) on two input numbers. It includes a step-by-step process for computing the results and a flowchart representation of the operations. The program is designed to read two numbers and display the results of the computations.

Uploaded by

human race
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Algorithm

Step 1. Take two numbers n1 and n2 as input

Step 2. Compute Addition = n1 + n2

Step 3. Compute Subtraction = n1 - n2

Step 4. Compute mult = n1*n2

Step 5. Compute Div = n1/n2

Step 6. Display Addition, Subtraction, Mult, Div

Flow chart

Start

Read

two numbers a,b

Compute

w=a+b

x=a–b

y = a*b

z = a/b

Print w, x, y, z
Program Name: Write and execute programs for addition, subtraction, multiplication
& division of two numbers

Program:

Output:

You might also like