Hi there!
I just started to learn C++ and wrote a simple program to radius from user and than calculate the Area, Circumference and Diameter, but the problem is it's not executing and I tried my best to get rid of the error, but in vain.
Please help me to get it executed.
Here is the program code
Please tell me where is error in this program.
Thanks
I just started to learn C++ and wrote a simple program to radius from user and than calculate the Area, Circumference and Diameter, but the problem is it's not executing and I tried my best to get rid of the error, but in vain.
Please help me to get it executed.
Here is the program code
Code:
#include<iostream.h> main() { float radius; float diameter; float circumference; float area; cout<<"Please enter the radius of a circle:"; cin>>radius; diameter=2*radius; circumference=2*3.14*radius; area=3.14*raidus*radius; cout<<"diameter of Circle is:"; cout<<diameter; cout<<"circumference of Circle is:"; cout<<circumference; cout<<"area of Circle is:"; cout<<area; }
Thanks
Comment