Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a program that calculate the volume of cylinder after
user enters radius and height and show the algorithm used

Answer Posted / evangelist sammy gicheha

# include<iostream.h>

//using namespace std;

# define PI 3.142;

int main ()

{

int Rad,Height;

double area;


cout<<"Enter the radius;";

cin>>Rad;

cout<<"Enter the Height;";

cin>>Height;

area = 3.142 * Rad * Rad * Height;

cout<<"Radius="<<Rad<<endl;

cout<<"Height="<<Height<<endl;

cout<<"The Area of the circle is"<<area<<"\n";

return 0;


}

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What output does the following code generate? Why? What output does it generate if you make A::Foo() a pure virtual function? class A { A() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; class B : public A { B() { this->Foo(); } virtual void Foo() { cout << "A::Foo()" << endl; } }; int main(int, char**) { A objectA; B objectB; return 0; }

1225


Write a (n) algorithm that sorts n distinct integers, ranging in size between 1 and kn inclusive, where k is a constant positive integer. (Hint: Use a kn-element array.)

4987


write a program that reads a series of strings and prints only those strings begging with letter "b"

3117


develop a program to calculate and print body mass index for 200 employees

2657


What output does this program generate as shown? Why? class A { A() { cout << "A::A()" << endl; } ~A() { cout << "A::~A()" << endl; throw "A::exception"; } }; class B { B() { cout << "B::B()" << endl; throw "B::exception"; } ~B() { cout << "B::~B()"; } }; int main(int, char**) { try { cout << "Entering try...catch block" << endl; A objectA; B objectB; cout << "Exiting try...catch block" << endl; } catch (char* ex) { cout << ex << endl; } return 0; }

1037


write a program that can LOCATE and INSERT elements in array using c++ programming languages.

4027


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4858


Code for Method of Handling Factorials of Any Size?

2484


Create a program to read two random data set in two files named data1.txt and data2.txt manifold contains integer numbers, whereas data2.txt file contains the float type numbers. Simpanlahmasing each into 2 pieces of data that is an array of type integer array and an array of type float, then calculate the average numbers in the second array.

2605


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

5116


how to write a program that opens a file and display in reverse order?

3061


Code for Small C++ Class to Transform Any Static Control into a Hyperlink Control?

3054


write a program to calculate the amount of investment after a period n years if the principal investors was p and interest is calculated using compound interest,formular=a=p(1+r)^n

2858


Write a simple encryption program using string function which apply the substitution method.

6111


how to diplay a external image of output on winxp by using c & c++,

3448