error C2676: binary '<<' : 'class istream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
Error executing cl.exe.
you need to calculate the values for the diameter, circumference, and area BEFORE you try to output them, not after...
that will take care of those three... but your other problem is you're not inputting OR calculating the radius. your input goes to 'number' when it should probably go to 'radius'
try this:
Code:
#include<iostream.h>
#include<math.h>
void main()
{
double radius;
double diameter;
double circumference;
double area;
cout<< "Enter the radius"<<endl;
cin>> radius;
diameter=radius*2;
cout<< "The diameter for your circle is"<< diameter<<endl;
circumference=2*3.14159*radius;
cout<< "The circumference is"<<circumference<<endl;
area=3.14159*radius*radius;
cout<< " The area is"<<area<<endl;
}