Created
February 2, 2016 17:45
-
-
Save batmantec/3c0bc660c910ba72653e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main (){ | |
float num1, num2, ans; | |
cout << "Give me the radius value: "; | |
cin >> num1; | |
cout << "Give me the hright value: "; | |
cin >> num2; | |
ans=(3.14*(num1*num1)*num2); | |
cout<<"The volume of the cylinder is "<<ans<<endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment