Question: answer in c++ Double length is read from input and area is the square of length. Perform the following tasks: - Output length with a
answer in c++
Double length is read from input and area is the square of length. Perform the following tasks: - Output length with a maximum of eight digits, showing the decimal point and any trailing 0s. Then, output " ". - Output area in fixed-point notation with a maximum of four digits in the fraction. Then, output " ". - Output area in scientific notation with a maximum of four digits in the fraction. End with a newline. Ex: If the input is 63.0, then the output is: 63.0000003969.00003.9690e+03 Note: cout showpoint shows the decimal point and any trailing 0s even when the fraction (after the decimal point) is zero
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
