Skip to content

Instantly share code, notes, and snippets.

@merlinnusr
Last active May 7, 2016 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save merlinnusr/ca80f6dd8e8cf58023d3dcf1fb4367d1 to your computer and use it in GitHub Desktop.
Save merlinnusr/ca80f6dd8e8cf58023d3dcf1fb4367d1 to your computer and use it in GitHub Desktop.
TAREA CUCEC
#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