I have this program and I needed to complete some blank spaces I did a few of them but some of them I;m not sure what to put. Sorry for having some dumb question I just wanna understand it better and to learn.
I'm gonna write here the version with the blank spaces
#include <iostream>
using namespace std;
const float PI = 3.14159; //Raportul dintre lungimea si diametrul unui cerc
int ___()
___
float lungimea; //Lungimea unui cerc
lungimea___ PI*7.8;
cout<<"Lungimea unui cerc";
cout<<"Cu diametrul 7.8 este"___endl;
___<<lungimea__endl;
return ___;
}
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <iostream>
usingnamespace std;
constfloat PI = 3.14159; //Raportul dintre lungimea si diametrul unui cerc
int main()
{
float lungimea; //Lungimea unui cerc
lungimea = PI*7.8;
cout<<"Lungimea unui cerc";
cout<<"Cu diametrul 7.8 este"<<""<<endl;
cout<<"Lungimea="<<endl;
return 0;
}
line 13 is probably not right.
I believe it wants the answer there:
cout << lungimea << endl;
you already said what it was in the text above so your line is redundant and the program lacks the actual number, so I feel safe saying this is what they wanted.