59
So‘zlar orqali
Blok-sxemasi
Dasturi
Ekranda
1) boshlanish;
2)
javob
sifatida
23
yozilsin;
3) tamom.
begin
write(23);
end.
23
1) boshlanish;
2) javob sifatida 23+21
yozilsin;
3) tamom.
begin
write(23+21);
end.
44
1) boshlanish;
2) javob sifatida “MMR”
yozilsin;
3) tamom.
begin
write(‘MMR’);
end.
MMR
Quyidagi chiziqli tuzilmalarni tahlil etish orqali Write va Writeln protsedur-
alari ishidagi farqni tushunib olish mumkin.
begin
write(‘Yashna, ‘);
write(‘gulla ‘);
write(‘ona Vatanim!‘);
end.
Dastur bajarilgach, kompyuter
ekranida
Yashna, gulla ona Vatanim!
yozuvi hosil bo‘ladi.
begin
writeln
(‘Yashna, ‘);
write(‘gulla ‘);
write(‘ona Vatanim!‘);
end.
Dastur bajarilgach, kompyuter
ekranida
Yashna,
gulla ona Vatanim!
yozuvi hosil bo‘ladi.
begin
write(‘Yashna, ‘);
writeln
(‘gulla ‘);
write(‘ona Vatanim!‘);
end.
Dastur bajarilgach, kompyuter
ekranida
Yashna, gulla
ona Vatanim!
yozuvi hosil bo‘ladi.
begin
write(‘Yashna, ‘); write(‘gulla ‘);
writeln
(‘ona Vatanim!‘);
end.
Dastur bajarilgach, kompyuter
ekranida
Do'stlaringiz bilan baham: