#include "stdio.h"
#include "conio.h"
#include "iostream.h"
main()
{
struct dtmhs
{ char nim[9],nama[15]; };
struct dtnil
{ float nil1,nil2; };
struct
{ struct dtmhs mhs; struct dtnil nil; }nilai;
clrscr();
cout<<" Nim : "; cin>>nilai.mhs.nim;
cout<<" Nama : "; cin>>nilai.mhs.nama;
cout<<" Nilai UTS : "; cin>>nilai.nil.nil1;
cout<<" Nilai UAS : "; cin>>nilai.nil.nil2;
cout<
}
0 komentar