Question

Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter two values

# C++ 


Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter two values. The program outputs the sum of and the difference between the two values.

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

CODE IN C++:

#include

using namespace std;

int main()
{
//declaring variables
int a,b;
//taking input from the user
cout<<"Enter two values:"< cin>>a>>b;
//finding sum and difference and displaying
cout<<"Sum:"< cout<<"difference:"<

return 0;
}

OUTPUT:

Add a comment
Know the answer?
Add Answer to:
Draw a flowchart or write pseudocode to represent the logic of a program that allows the user to enter two values
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