Question

1-Write an algorithm to get two numbers from the user (as inputs) and calculate the sum...

1-Write an algorithm to get two numbers from the user (as inputs) and calculate the sum of two numbers and print out the result. (draw the flow chart)

2-Write an algorithm to get a number from the user and calculate the square of that number and print out the result.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

Algorithm:

1. Start
2. Input first number let it be A
3. Input second number let it be B
4. SUM = A + B
5. Display SUM
6. Stop

Flowchart:

2.

Algorithm:

1. Start
2. Input the number let it be A
3. SQR = A * A
4. Display SQR
5. Stop

FlowChart:

Add a comment
Know the answer?
Add Answer to:
1-Write an algorithm to get two numbers from the user (as inputs) and calculate the sum...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT