Senin, 18 Oktober 2010

script menghitung volume dan luas tabung

//script
#include
#include
#include
main() 


 
{
int r,t;
float ph=3.14,hasil,hasil1;
char lg;
atas:
cout<<"menghitung Volume dan Luas tabung \n";
cout<<"----------------------------------\n\n";
cout<<"masukan jari-jari tabung:";cin>>r;
cout<<"masukan tinggi tabung :";cin>>t;
hasil=ph*r*r*t;
hasil1=ph*r*r;
cout<<"\n---------------------------------";
cout<<"\nVolume tabung adalah:"<cout<<"\nluas tabung adalah :"<cout<<"\n---------------------------------";
cout<<"\n\n\n kelompok......";
cout<<"\nmuhmanda-18100802";
cout<<"\nnugroho-........";
cout<<"\njunaidi-........";
cout<<"\nandre-..........";
cout<<"\n\nIngin Hitung Lagi [Y/N] : ";cin>>lg;
if (lg=='Y'||lg=='y')
goto atas;
cout<<"\n\t TERIMA KASIH \nTUTUP ATUH PROGRAMNA"<
getch();
}