Answer to Question #185955 in C++ for shuvo

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;


1
Expert's answer
2021-04-28T02:49:19-0400

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS