Computer Science, asked by adityarawat123, 4 months ago

Assume the following variable definition appears in a program:

double number = 12.3456;

Write a cout statement that uses the setprecision manipulator to display the number variable with 4 significant digits. (Assume that the program includes the necessary header file for the setprecision manipulator.)

Answers

Answered by prabhudas54
2

hk1ifppgp0h9h99i6wwzcu

Answered by andangt
1

Answer:

cout << setprecision(4) <<number;

Explanation:

Similar questions