Variables

Suppose a and b are int variables, c is a double variable, and a = 25, b = 20, and c = 5.0. What is the output of the following statements?  (3, 4, 10)

a. cout < a=”” *=”” 2=”” *=”” b=””>< endl;=””>

b. cout < a=”” +=”” b=”” 2.0=”” +=”” 1.5=”” *=”” c=””>< endl;=”” c.=”” cout=””>< a=””>(b) < endl;=””>

d. cout < 62=”” %=”” 28=”” +=”” a=”” c=””>< endl;=””>

e. cout <>(c) % 3 + 7 < endl;=””>

f. cout < 22.5=”” 2=”” +=”” 14.0=”” *=”” 3.5=”” +=”” 28=””>< endl;=””>

g. cout < 2=”” (c=”” –=””>(c + 1.2))<>

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X