Algorithm for Sum of two numbers
It's an algorithm for to find sum of two user defined numbers. *Not a program.
To add two numbers.
* You can change SUM, PRODUCT, DIV amd SUB with your variables and note that you must to change the 3. Dispaly SUM / PRODUCT /DIV/ SUB.
To add two numbers.
- Read the Value of A and B.
- SUM = A+B.
- Display SUM.
- Stop.
- Read the Value of A and B.
- PRODUCT = A*B.
- Display PRODUCT.
- Stop.
- Read the Value of A and B.
- DIV = A/B.
- Display DIV.
- Stop.
- Read the Value of A and B.
- SUB = A-B.
- Display SUB.
- Stop.
* You can change SUM, PRODUCT, DIV amd SUB with your variables and note that you must to change the 3. Dispaly SUM / PRODUCT /DIV/ SUB.
Very bad
ReplyDeleteVery good but I wany to know the algorithm of sum and difference of two numbers.is it possible
DeleteCjgi
Delete