Kullanıcıyı,1’i seçmesi durumunda YTÜ web sayfasina, 2’yi seçmesi durumunda istediğiniz bir web sayfasina yönlendiren bir menü programı yazınız.
Kod:
clear
clc
disp('[1]...YTU web sayfasi')
disp('[2]...Cüneyt Aydın web sayfasi')
a=input('<Selection>=');
if (a>2)|(a<=0)
menu %Kullanıcının 0,negatif veya 3’den büyük sayı girmesi
end durumunda, programı yeniden başlatmak için
if a==1
web www.yildiz.edu.tr -browser
end
if a==2
web www.yildiz.edu.tr/~caydin -browser
end