Hello.
I don't know how to print the result after the decimal point, even though I used setprecision (2) ..
[code:1:384ebe9e9a]#include
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
float wynik, H, D;
cin >> H;
cin >> D;
wynik=(H*H-D*D)/(2*H);
cout > D;
wynik=(H*H-D*D)/(2*H);
cout
I don't know how to print the result after the decimal point, even though I used setprecision (2) ..
[code:1:384ebe9e9a]#include
#include
#include
using namespace std;
int main(int argc, char *argv[])
{
float wynik, H, D;
cin >> H;
cin >> D;
wynik=(H*H-D*D)/(2*H);
cout > D;
wynik=(H*H-D*D)/(2*H);
cout