Senin, 18 Oktober 2010

menghitung volume bola

//script
#include
#include
#include
main()
{
clrscr();
int r;
float ph=3.14,hasil;
char lg;
atas: 



cout<<"menghitung Volume bola \n";
cout<<"-------------------------\n\n";
cout<<"masukan jari-jari bola:";cin>>r;
hasil=ph*r*r*r;
cout<<"\n-------------------------";
cout<<"\nVolume Bola 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\ TERIMA KASIH IBU\nBETUL BETUL BETUL"<
getch();
}