Question #185955

Assuming that weight has type double and value 126.7, and age has type int and value 26, what output is generated by the statement below?

cout << "Age: " << setw(3) << age << ", Weight: " << setw(8)

<< fixed << setprecision(2) << weight << endl;


Expert's answer

Output :

Age : 26, Weight : 126.70



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS