Math problem

Hi, im doing a calculator that calculate area and circuit of forms. But at the math part i get the wrong anwser. What am i doing wrong?

if (form_2 == 1)
{
cout <<"Please enter the diameter of the circle:\n";
cin >> circle_diameter;
circle_diameter / 2 = circle_radie; // <---- Error
circle_radie * circle_radie = circle_sum; // <---- Error
cout <<"The area of the circle is: ";
cout << circle_sum;

}

The error is "1value as required as left operand of assignment"
Im using the program codeblocks when i program c++.
is it a good program?
The anwser is also wrong. what am i doing wrong? Please help :D
you can't make an operation in the left side.
you should do:
1
2
circle_radie = circle_diameter/2;
circle_sum = circle_radie*circle_radie;


also, use the <code> option to post your code :D
Thanks :D
Topic archived. No new replies allowed.