write an algorithm to perform all arithmetic operations on two integers
Answers
Answered by
14
Answer:
Step1:Start
step2:read a and b
step3:display a+b,a-b,a*b,a**b,a/b,a℅b
step4:end
Answered by
5
1. Start.
2. Initialize int a,b,c,d,e,f;
2. Accept two numbers a and b from the user.
3. Perform addition and store the result in c.
4. Perform subtraction and store the result in d.
5. Perform division and store the result in e.
6. Perform multiplication and store the result in f.
7. Stop.
Explanation:
A set of rules is actually hard and fast of steps used to finish a particular task.
They're the constructing blocks for programming, and that they permit such things as computers, smartphones, and websites to characteristic and make decisions.
In addition to being utilized by technology, lots of factors we do on an everyday foundation are just like algorithms.
Similar questions