int rad, mypi=3.14;
int area, perimeter;
cout<<"the perimeter is: <<perm<<endl;
cout<<"the area is: <<area<<endl;
so i don't know what's wrong,, also i don't know if i have to write "float mypi=3.14 at th beginnig or not
The formula for calculating the area of a circle is pi*(radius*radius).
You can declare pi as a const double and set it equal to 3.14. So you need to have a variable for radius. Then simply put all the values into the formula.
Also use code tags when posting code.
I am working creating a fully encapsulated, homogeneous singly linked data structure. The Listing class and SinglyLinkedList class that are part of the whole application compile fine, but the problem ...