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.
Write a single program to use the various formats to display the following numbers for C++ program. Your program must be
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am