Skip to content

Commit

Permalink
Create Quiz #1 Prog 1
Browse files Browse the repository at this point in the history
  • Loading branch information
danamaro committed Feb 19, 2016
1 parent 1db99c0 commit 6bdc2bc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Quiz #1 Prog 1
@@ -0,0 +1,16 @@
#include <iostream>
using namespace std;
int main (){
float Radio;
float Altura;
float Volumen;
cout<<"Obtén el volumen de un cilindro"<<endl;
cout<<"Escribe el radio (en decimales)"<<endl;
cin>>Radio;
cout<<"Escriba la altura (en decimales)"<<endl;
cin>>Altura;
Volumen= 3.1416*Radio*Radio*Altura;
cout<<"Resultado del volumen: "<<Volumen<<endl;
cout<<";o";

}

0 comments on commit 6bdc2bc

Please sign in to comment.