3. DASTIRNI BOSHQARISH VA NAZORAT QILISH TUZILISHI……………………...47 3.1. Dastur tuzilishi…………………………………………………………………………..47
3.2. Kommentariya…………………………………………………………………………..49
3.3. Operatorlarni bir necha qatorga joylashtirish.…………………………………………..49
3.4. Bir necha operatorlarni bir qatorga joylashtirishi………………………………………49
3.5. Dastlabki kodni tahrirlash. ……………………………………………………………..49
3.6.Chiziqli (ketma-ket) algoritmlar. ……………………………………………………….51
8-misol: Chiziqli algoritmli dastur. …………………..…..……......................................51
9-misol: Chiziqli algoritmli dastur. …………………..…..……......................................55
3.7. If, Go To, Select boshqarish tuzilmalari. ……………………………………………….59
3.7.1. If…Then tuzilishi. ………………………………………………………………..59
3.7.2. If … Then … Else tuzilishi. ………………………………………………………60
3.7.3. If … Then … ElseIF tuzilishi. ……………………………………………………60
10-misol: Tarmoqlanuvchi dastur. ………………..……….…….....................................61
11-misol: Tarmoqlanuvchi dastur. ………………..…..……............................................66
3.8. GOTO shartsiz o’tish operatori. ………………..…..……..............................................71
12-misol: GOTO operatorini ishlatish. ………………..…..…….....................................71
3.9. SELECT CASE shartli operatori. ………………..…..……............................................73
13-misol: SELECT CASE operatorini ishlatish. ………………..…..……......................74
3.10. Siklli tizilmalar. ………………..…..……...........................................................................78
3.10.1. For … Next sikl operatori..……............................................................................79
14-misol: For … Next operatorini ishlatish. ………………..…..…….............................79
15-misol: For … Next operatorini ishlatish. ………………..…..…….............................83
3.11. Sharti oldinda va oxirida berilgan sikl operatorlari…………..…..……..............................87
3.11.1. Sharti oldinda berilgan Do While siklning sintaksisi. ..…..…….............................87
3.11.2. Sharti oxirida berilgan siklning sintaksisi ……..…..…….......................................88
3.11.3. Sharti oldinda berilgan sikl. …………………………..…..…….............................88
3.11.4. Sharti oxirida berilgan sikl. ……………..……..…..…….......................................89
3.11.5. Loop Until sharti. ……………………………………..…..…….............................89
16-misol: Sharti oldinda berilgan siklni ishlatish. ………………..…..……....................89
17-misol: Sharti oxirida berilgan sikl ni ishlatish. ………………..…..……....................92