a place where all ur worries are gone and scream all crap u wan while learning something new every day! c language to calculus, welcome to MY HOLY WORLD! :-)

Monday, April 27, 2009

it has been a long time since the last post
now,
from c to C++!!
here is a very useful prog
#include
using namespace std;
int main()
{
double radius;
cout<<"enter radius: "; cin >> radius;
double area = radius*radius*3.14;
double cir = radius*2*3.14;
getchar();
cout <<"The area is "<< area << endl; cout <<"The circumference is "<< cir << endl;
getchar();
return 0;
}

a holy new prog and my holy world!

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home