1#include<iomanip>
2#include <iostream>
3using namespace std;
4
5int main()
6{
7 int num = 45;
8 cout << "it is: " << fixed << setprecision(2) << num << " the end"<< endl;
9
10 return 0;
11}
12
1#include <iomanip.h>
2#include <iomanip>
3int main()
4{
5 double num1 = 3.12345678;
6 cout << fixed << showpoint;
7 cout << setprecision(2);
8 cout << num1 << endl;
9}
10
1#include<iostream>
2#include<iomanip>
3using namespace std;
4int main()
5{
6 int i = 18;
7 cout<<setw(10)i;
8}