uses wincrt;
var
nama,nim:string;
nt,nmt,na:integer;
nr :real;
begin
writeln (' DAFTAR NILAI MAHASISWA');
write ('Nama : ');
readln (nama);
write ('NIM : ');
readln (nim);
write ('Nilai Tugas : ');
readln (nt);
write ('Nilai Mid Test : ');
readln (nmt);
write ('Nilai Akhir : ');
readln (na);
nr:=(0.5*nt)+(0.25*nmt)+(0.25*na);
writeln ('Rata-rata : ',nr:0:2);
end.
Selasa, 17 April 2012
MENCARI NILAI RATA-RATA MAHASISWA
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar