Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.