62 572
Assignments Done
Successfully Done
In June 2018

Answer to Question #21213 in C++ for DK

Question #21213
"Write a complete C++ program to find the Volume and the Surface Area of a Cylinder. The program should let the user enter Radius and Height of the cylinder. The user should always enter values which should be only numerical values. If a user has entered a value without an appropriate data type then appropriate error messages must be displayed. Hint: Use functions to write your program" help on this?
Expert's answer

//#include <stdafx>
#include <iostream>
using namespace std;

void vvv(int r,int h)
double V=0;

& V=3.14*r*r*h;

cout << "V= "<< V<< endl;

void sss(int r,int h)

double s=0;

cout <<& "S= "<<s<< endl;

int main()
int digit;
cout << "Enter r and s: ";
int r,h;
cin >> r;
& cin >> h;

& sss(r,h);
// system("pause");
return 0;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions