0
Some one help me with this code..??
I have to find all the possible sides of a rectangle from the given area ...but the problem is i have to get the sides till first decimal number...HELP!! https://code.sololearn.com/coSQ0cmmS6HJ/?ref=app
5 Answers
+ 3
Use cout<<fixed<<setprecision(1); before printing the variable, to set the number of digits after the decimal point.
Also, you need to include the header <iomanip>
+ 2
Did you write :
<iomanip>
or
#include<iomanip>
You need to add the latter.
The iomanip library is used to format/manipulate the input/output as per custom preferences.
+ 1
Can you post the final code?
0
Kinshuk Vasisht what does <iomanip> will do...nah...its not working bro
0
Kinshuk Vasisht #include<iomanip>