If you want to change the precision level for the fractional part of a numerical output, you need to use Select one: a. both fixed and setprecision b. fixed c. showpoint d. setprecision code example
Example 1: ‘setprecision’ was not declared in this scope
//You have to include header file
#include <iomanip>
Example 2: setprecision in c++
#include<iomanip>
#include <iostream>
using namespace std;
int main()
{
int num = 45;
cout << "it is: " << fixed << setprecision(2) << num << " the end"<< endl;
return 0;
}