#include iostream.h>
#include conio.h>
void main ()
{
long barang[5],total;
int i;
char jawab;
awal:
total=0;
cout << "KASIR" << i="0;i<5;i++)">> barang[i];
}
for (i=0;i<5;i++)
{
total=total+barang[i];
}
cout << endl << "total :" << total << endl;
cout << "next (Y/T) : ";
jawab=getche();
if(jawab=='Y' || jawab=='y')
{
clrscr();
goto awal;
}
}
Sign up here with your email
ConversionConversion EmoticonEmoticon