#include"conio.h"
#include"iostream.h"
garis()
{
printf("\t=================================================\n");
return 0;
}
tot(float hrg,float jml)
{
return(hrg*jml);
}
main()
{
char kb[15],nb[15],lg;
float hrg_brg,jb,tot_byr;
awal:
clrscr();
cout<<"\t\tPROGRAM HITUNG PT MAJU MUNDUR"<
cout<<"\t Nama Barang :";gets(nb); cout<<"\t Harga Barang :Rp";cin>>hrg_brg;
cout<<"\t Jumlah Beli : item";gotoxy(24,6);cin>>jb;
cout<
if(lg=='Y'||lg=='y')
goto awal;
else
goto akhir;
akhir:
clrscr();
getch();
}
Tidak ada komentar:
Posting Komentar