Last active
May 7, 2016 16:20
-
-
Save merlinnusr/ca80f6dd8e8cf58023d3dcf1fb4367d1 to your computer and use it in GitHub Desktop.
TAREA CUCEC
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<conio.h> | |
#include<iostream> | |
using namespace std; | |
main() | |
{ | |
const double a = 3.141592654; | |
double al, r, area, at, vol; | |
cout<<"Ingresa la altura del cilindro\t\t"; | |
cin>>al; | |
cout<<"Ingresa el radio del cilindro\t\t"; | |
cin>>r; | |
area = 2*a*r*al; | |
at = 2*a*r*(al+r); | |
vol = a*r*r*al; | |
cout<<"\n\n\nEl area laterial del cilindro es:\t"<<area; | |
cout<<"\n\n"; | |
cout<<"El area TOTAL del cilindro es:\t\t"<<at; | |
cout<<"\n\n\n\n"; | |
cout<<"El VOLUMEN del cilindro es:\t\t"<<vol; | |
getch(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment