Sequence, Definition: instructions run in order, one after another., Start to end: each line happens before the next line., no decision changes the path., Selection, Definition: a program chooses between paths based on a condition., True or false: decisions depend on Boolean results., If statement: ("positive"), Else statement: 0: print("positive") else: print("not positive"), Elif branch: ) elif score >= 50: print("merit"), Comparison: decisions often use operators like >, <, ==., Switch case, Iteration, Definition: a block of code repeats multiple times., Count loop: repeat a set number of times: for i in range(5): print(i), Conditional loop — repeat while a condition stays true: while x < 5: x += 1, While (condition based), For (count based), Do until

Programming Constructs: Sequence, Selection and Iteration

โดย

ลีดเดอร์บอร์ด

ขณะนี้เรากําลังดําเนินการปรับปรุงฟังก์ชันการกระดานผู้นํา โปรดช่วยเราด้วยการเสนอข้อเสนอแนะของคุณ

ให้คําติชม

สไตล์ภาพ

ตัวเลือก

ขณะนี้เรากําลังปรับปรุงการตั้งค่ากิจกรรมโปรดช่วยเราโดยให้ข้อเสนอแนะของคุณ

ให้คําติชม
AI Enhanced: กิจกรรมนี้มีเนื้อหาที่สร้างโดย AI ศึกษาเพิ่มเติม

สลับแม่แบบ

คืนค่าการบันทึกอัตโนมัติ: ใช่ไหม