#include<stdio.h>
#include<conio.h>
main()
{
int kode[10];
char nama[10][10];
int harga[10];
int y,i,j;
clrscr();
puts("Contoh Tampilan Yang Diharapkan \n");
puts("-------------------------------------------");
puts("No Kode Nama Barang Harga");
puts("-------------------------------------------");
y=6;
for(i=1;i<=3;i++)
{
gotoxy(2,y);
printf("%d",i);
gotoxy(9,y);
scanf("%d",&kode[i]);
gotoxy(19,y);
scanf("%s",&nama[i]);
gotoxy(36,y);
y++;
scanf("%d",&harga[i]);
}
puts("--------------------------------------------");
return 0;
}
0 komentar:
Posting Komentar