สอนภาษาซี C: การใช้คำสั่ง for loop เพื่อทำงานซ้ำ
สอนภาษาซี C: การใช้คำสั่ง for loop เพื่อทำงานซ้ำ
#include > int main() { for { printf; } return 0; }
จากรูปแบบการใช้คำสั่ง for มีขั้นตอนการทำงาน ดังนี้ หมายเลข 1 กำหนดค่าเริ่มต้นให้ตัวแปรที่ใช้เป็นดัชนี หมายเลข 2 ตรวจสอบ
คำ ให้พร ล้าน นา 1 ทำการเขียนโค้ดโดยทำการแปลงคำสั่ง for ให้มาใช้คำสั่ง while() แทน 2 ทำการเขียนโค้ดโดยทำการแปลงคำสั่ง for ให้มาใช้คำสั่ง
คำสาบาน For Loop & While Loop# # Write your code below and press Shift+Enter to execute # Write your code below and press Shift+Enter to execute #
Regular
price
139.00 ฿ THB
Regular
price
139.00 ฿ THB
Sale
price
139.00 ฿ THB
Unit price
/
per