Question

4. (1596) #include <iostream> using namespace std; int main int i, j; int sum; sum 20; for (i 1; i 2; i++)t for (j = 1;js-2; j++) { sum = sum + i +j; cout <cwhen i and j are: i ce<jsum issum cendl. return 0; Show the output values of j and sum: sum-sum +i+j 5. (15%) Write a program A. to define two classes I. class Shape comprising the following members: class Shape Shape(string colorVar):/lconstructor void setColor(string colorVar):/lassign color string to color public: Cler Ureturn color string

Help

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

Answer:

an output of this program is :

Add a comment
Know the answer?
Add Answer to:
Help 4. (1596) #include <iostream> using namespace std; int main int i, j; int sum; 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