program menghitung_nilai;
uses wincrt;
var
a:integer;
begin
writeln('masukkan nilai!');
write('nilai angka = ');
readln(a);
case a of 81..100 : writeln ('nilai huruf = ','A');
76..80 : writeln ('AB');
71..75 : writeln ('B');
61..70 : writeln ('BC');
51..60 : writeln ('C');
41..50 : writeln ('D');
0..40 : writeln ('E');
else writeln ('input nilai salah');
end;
end.
uses wincrt;
var
a:integer;
begin
writeln('masukkan nilai!');
write('nilai angka = ');
readln(a);
case a of 81..100 : writeln ('nilai huruf = ','A');
76..80 : writeln ('AB');
71..75 : writeln ('B');
61..70 : writeln ('BC');
51..60 : writeln ('C');
41..50 : writeln ('D');
0..40 : writeln ('E');
else writeln ('input nilai salah');
end;
end.
download Lagu Baru masa kini
BalasHapus