program hesaplama
character::cevap
integer::vize,final,butunleme
real::yilsonu
print*,"Yilsonu Ortalama Programi"
10 print*,"Vize Ve Final Sinav Notunuzu Girin"
read*,vize,final
yilsonu=vize*40.0/100+final*60.0/100
if ((vize>100).or.(final>100)) then
print*,"YANLIS DEGER TEKRAR DENEYIN",vize,final
goto 5
else if ((final>49).and.(yilsonu>49)) then
print*,"Basarili",yilsonu,final
goto 3
end if
if (final<50) then
print*,"Butunlemeye Kaldin"
print*,"Butunleme Notunu Gir"
read*,butunleme
yilsonu=vize*40.0/100+butunleme*60.0/100
end if
if ((butunleme>49).and.(yilsonu>49)) then
print*,"Gectin",yilsonu
else
print*,"Kaldin"
goto 3
end if
3 print*,"Programdan cikmak istermisiniz?(e/h)?"
read*,cevap
if ((cevap=="h").or.(cevap=="H")) then
goto 5
else
goto 20
end if
5 goto 10
Çıkma Komutunu da ekledim...