Write a C++ program:

– Use cin to input two real numbers: 123.4567898, 0.0000345.

– Display these two numbers with scientific notations.

– Compute the sum of these two numbers.

– Display the result by setting:

• the display width is 20,

• fill ’X’ with empty spaces,

• precision is 4,

• left-justify

– Use cin to input two real numbers: 123.4567898, 0.0000345.

– Display these two numbers with scientific notations.

– Compute the sum of these two numbers.

– Display the result by setting:

• the display width is 20,

• fill ’X’ with empty spaces,

• precision is 4,

• left-justify

Topic archived. No new replies allowed.