answer:
#include <iostream.h>
#include <iomanip.h>
int main()
{
double num = 3.6;
cout << setiosflags(ios::fixed | ios::showpoint);
cout << setprecision(2);
cout << num << endl;
}
/*
refer to any iomanip formatting document for c++ io formatting
*/
#include <iomanip.h>
int main()
{
double num = 3.6;
cout << setiosflags(ios::fixed | ios::showpoint);
cout << setprecision(2);
cout << num << endl;
}
/*
refer to any iomanip formatting document for c++ io formatting
*/
You may say I'm a dreamer
but I'm not the only one...