Problem with the length of the circle

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>

using namespace std;

const float 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.

Which language is this anyway?
Last edited on
it's romanian. And i've just tried cout << lungimea << endl; and it's not working :(
"It's not working" what isn't working? Be specific. We aren't psychic.
Last edited on
It says that 'lungimea' was not declared in this scope. And it's not running the program.
Post a reply and paste the full code causing the issue.
Last edited on
#include <iostream>

using namespace std;

const float 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;

}
C++ is case-sensitive
Uppercase L does not equal lowercase l.

change Lungimea to lungimea
Last edited on
it's working . thank you ^^
Topic archived. No new replies allowed.