PROGRAM MENENTUKAN KELULUSAN

program menentukan_kelulusan;

uses wincrt;

var

nm:string[20];

uts,uas,x,na:real;

begin

writeln(‘PROGRAM MENENTUKAN KELULUSAN SISWA’);

writeln(‘———————————-‘);

writeln;

write(‘Nama: ‘);read(nm);

write(‘NIM: ‘);read(x);

write(‘nilai uts: ‘);read(uts);

write(‘nilai uas: ‘);read(uas);

na:=((40/100)*uts)+((60/100)*uas);

if na>50 then

begin

writeln(‘nilai akhir: ‘,na:5:2);

writeln;

write(‘Jadi ‘,nm,’ LULUS’);

end;

if na<=50 then

begin

writeln(‘niai akhir:’,na:5:2);

writeln;

write(‘Jadi ‘,nm,’ TIDAK LULUS’);

end;

end.

Iklan

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout /  Ubah )

Foto Google+

You are commenting using your Google+ account. Logout /  Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout /  Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout /  Ubah )

Connecting to %s

%d blogger menyukai ini: