Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- #include <stdlib.h>
- using namespace std;
- int main() {
- const double PI =3.141592653589793238463;
- float radio, altura;
- cout<<"Ingrese el radio: ";
- cin>>radio;
- cout<<"Ingrese la altura: ";
- cin>>altura;
- float resultado=0;
- resultado= (altura*(pow(radio,2))*PI)/3;
- cout<<"Volumen del cono: "<<resultado<<endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement