#include <iostream.h>
#include <conio.h>
#define phi 3.14
typedef struct { int a, La;
int t, jj;
} tbg;
tbg tabung;
void main ()
{
cout<<"Nama :ferry Hedra RisdianSyah";
cout<<"\nNim :11121334";
cout<<"\nProgram :pencari volum+luas tabung";
/*cout<<"masukan nilai alas=";
cin>>tabung.a;*/
cout<<"\n\nMasukan nilai tinggi = ";
cin>>tabung.t;
cout<<"Masukan nilai jari jari = ";
cin>>tabung.jj;
cout<<"Luas alas tabung = " <<phi*tabung.jj*tabung.jj;
cout<<"\nVolum tabung = " <<phi*tabung.jj*tabung.jj*tabung.t;
getch () ;
}
Subscribe to:
Post Comments (Atom)
0 Response to "Script mencari volume tabung"
Post a Comment
komentarilah dengan bijak,komentar saya terima sebagai masukan untuk menilai saya.. thanks