Öğrenci notu hesaplama.pas
PHP:
program nothesap;
uses crt;
var
vize,quiz,odev,devam,final:integer;
basarin:real;
begin
write('Vize notu:');
readln(vize);
write('Quiz notu:');
readln(quiz);
write('Odev notu:');
readln(odev);
write('Devam notu:');
readln(devam);
write('Final notu:');
readln(final);
basarin:=(((vize*0.5)+(quiz*0.25)+(odev*0.15)+(devam*0.1))*0.5)+(final*0.5);
writeln('Ogrencinin Basari Notu : ',trunc(basarin));
if basarin>=65 then
writeln('Gectiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii')
else
writeln('Kaldiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii');
end.