Question: for c++: In the program below, what line inserted at ???????? will print 35 sq in? int main(void) { int base = 7; int height
for c++: In the program below, what line inserted at ???????? will print "35 sq in"? int main(void) { int base = 7; int height = 10; ???????? return 0; } // End main
| A: | cout << "(0.5 * base * height)" << " sq in" << endl; |
| B: | cout << 0.5 << "*" << base << "*" << height << " sq in " << endl; |
| C: | cout << (0.5 * base * height) << " sq in" << endl; |
| d: | cout << 0.5 * base * height << sq in << endl; |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
