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
2
hk1ifppgp0h9h99i6wwzcu
Answered by
1
Answer:
cout << setprecision(4) <<number;
Explanation:
Similar questions