42
Masala 1. Quyidagi ifodani hisoblashning blok-chizmasini tuzing (4.4-rasm).
x > 0 bo‗lganda, x+5,
y =
x 0 bo‗lganda, x-5.
4.4-rasm.1-masalani yechish algoritmining blok-chizmasi
4.4-rasmda keltirilgan blok-chizmada hisoblash jarayonining tarmoqlangan
algoritmi keltirilgan. Agar x>0 sharti bajarilsa, u holda 2,4,5 bloklarning bajarilish
jarayoni bo‗ladi, aks holda esa 2,3,5 bloklar bajariladi. Shunday qilib, masalaning
algoritmidan kelib chiqib ikkita blokdan bittasi yoki 3-blok, yoki 4-blok bajarilishi
mumkin.