#include "conio.h"
#include "stdio.h"
#include "iomanip.h"
void main()
{
atas:clrscr();
int x,n;
char nama[15][5],k;
int nim[5],uts[5],uas[5],rata[5];
cout<<"Masukkkan Jumlah Data = ";cin>>x;
for(n=1;n<=x;n++)
{
cout<<"Data Ke :"<
cout<<"Nama :";gets(nama[n]);
cout<<"UTS :";cin>>uts[n];
cout<<"UAS :";cin>>uas[n];
rata[n]=(uts[n]+uas[n])/2;
}
clrscr();
cout<<" DAFTAR NILAI "<
for(n=1;n<=x;n++)
{
cout<
cout<<"__________________________________________________"<
cout<<"Input Data Lainnya[Y/T] ";cin>>k;
if (k=='y' || k=='t')
goto atas;
getch();
}
Tidak ada komentar:
Posting Komentar