#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
long double n;
cin>>n;
cout<<setprecision(4)<<fixed<<scientific<<n;
return 0;
}
For Example : If I input something like 256 in the program,I get 2.5600e+002 as output.But I want to print 2.5600*(10^2).I also want to be able to control how many digits gets displayed after the decimal point.
Can anybody help me with that?