#include "conio.h"
#include "iostream.h"
#include "iomanip.h"
main()
{ int i,k;
char nama[5][20],lagi;
float nteori[5],npraktek[5],hasil[5];
atas:
clrscr();
cout<<"\n\n Jumlah Data : ";cin>>k;
cout<<"Data Ke "<cout<<"Nama Siswa : ";cin>>nama[i];
cout<<"Nilai Teori : ";cin>>nteori[i];
cout<<"Nilai Praktek : ";cin>>npraktek[i];
for (i=1;i<=k;i++)
{
hasil[i]=(nteori[i]*0.4)+(npraktek[i]*0.6);
cout<
clrscr();
cout<<"------------------------------------------"<
{
cout<
cout<<"------------------------------------------"<
if (lagi=='Y' || lagi=='y')
goto atas;
getch();
}
Tidak ada komentar:
Posting Komentar