Page 1 of 1

Write a single program to use the various formats to display the following numbers for C++ program. Your program must be

Posted: Fri Jul 08, 2022 6:43 am
by answerhappygod
Write a single program to use the various formats to display thefollowing numbers for C++ program. Your programmust be compiled without error.
i. 6.670e+02
ii. 345.247bb
iii. ____345.2468 (4 underscore characters)
iv. 3e8 v. 66.70
In question ii, 345.247bb is not a hex number and "bb"is part of the formatting. You display the number 345.247 in theform of 345.247bb using output formatting.