Skip to content · ⁨ข้ามไปยังเนื้อหา⁩

← Learn to Code — Python, Java, C, SQL & Web · ⁨เรียนรู้การเขียนโค้ด — Python, Java, C, SQL & Web⁩

C Practice

Coding challenges from 1★ to 5★.

c 34 Lessons · ⁨บทเรียน⁩

Every lesson runs in your browser — write real code, press Run, and the tasks check themselves. Free, no account needed, with translated notes paired with English. · ⁨ทุกบทเรียนทำงานบนเบราว์เซอร์ของคุณ — เขียนโค้ดจริง กด Run และงานจะตรวจสอบตัวเองอัตโนมัติ ฟรี ไม่ต้องสมัครบัญชี พร้อมบันทึกคำแปลคู่กับภาษาอังกฤษ⁩

Start the course · ⁨เริ่มหลักสูตร⁩

Lessons in this course · ⁨บทเรียนในหลักสูตรนี้⁩

  1. 01 Print a word · ⁨พิมพ์คำ⁩ 1 required task · ★
  2. 02 Print another word · ⁨พิมพ์อีกคำหนึ่ง⁩ 1 required task · ★
  3. 03 Print a sentence · ⁨พิมพ์ประโยค⁩ 1 required task · ★
  4. 04 Print with a ! · ⁨พิมพ์ด้วย !⁩ 1 required task · ★
  5. 05 Print two lines · ⁨พิมพ์สองบรรทัด⁩ 1 required task · ★
  6. 06 Print three lines · ⁨พิมพ์สามบรรทัด⁩ 1 required task · ★
  7. 07 Print a number · ⁨พิมพ์ตัวเลข⁩ 1 required task · ★
  8. 08 Add two numbers · ⁨บวกสองตัวเลข⁩ 1 required task · ★
  9. 09 Subtract · ⁨ลบ⁩ 1 required task · ★
  10. 10 Multiply · ⁨คูณ⁩ 1 required task · ★
  11. 11 Remainder · ⁨เศษเหลือ⁩ 1 required task · ★
  12. 12 A number variable · ⁨ตัวแปรตัวเลข⁩ 1 required task · ★
  13. 13 Add two variables · ⁨บวกตัวแปรสองตัว⁩ 1 required task · ★
  14. 14 Multiply two variables · ⁨คูณตัวแปรสองตัว⁩ 1 required task · ★
  15. 15 Your first function · ⁨ฟังก์ชันแรกของคุณ⁩ 1 required task · ★
  16. 16 Is it positive? · ⁨มันเป็นบวกหรือไม่?⁩ 1 required task · ★
  17. 17 Cube a number · ⁨ยกกำลังสามตัวเลข⁩ 1 required task · ★
  18. 18 The smaller one · ⁨ตัวที่น้อยกว่า⁩ 1 required task · ★
  19. 19 Square a number · ⁨ยกกำลังสองตัวเลข⁩ 1 required task · ★
  20. 20 Sign of a number · ⁨เครื่องหมายของตัวเลข⁩ 1 required task · ★
  21. 21 Largest of three · ⁨ตัวมากที่สุดในสามตัว⁩ 1 required task · ★★
  22. 22 Factorial · ⁨-factorial⁩ 1 required task · ★★
  23. 23 Greatest common divisor · ⁨ตัวหารร่วมมากที่สุด⁩ 1 required task · ★★
  24. 24 Count the 1-bits · ⁨นับ 1-bits⁩ 1 required task · ★★
  25. 25 Sum an array · ⁨ผลรวมของ array⁩ 1 required task · ★★★
  26. 26 Swap two values · ⁨สลับสองค่า⁩ 1 required task · ★★★
  27. 27 String length · ⁨ความยาว string⁩ 1 required task · ★★★
  28. 28 Count a character · ⁨นับcharacter⁩ 1 required task · ★★★
  29. 29 Reverse in place · ⁨กลับด้านใน place⁩ 1 required task · ★★★★
  30. 30 Palindrome 1 required task · ★★★★
  31. 31 Bubble sort · ⁨bubble sort⁩ 1 required task · ★★★★
  32. 32 Points with a struct 1 required task · ★★★★
  33. 33 Binary search · ⁨การค้นหาแบบทวิภาคี⁩ 1 required task · ★★★★★
  34. 34 Parse an integer 1 required task · ★★★★★

Language reference · ⁨อ้างอิงภาษา⁩

/know/reference/c

Log in or create account · ⁨เข้าสู่ระบบหรือสร้างบัญชี⁩

IGCSE, A-Level & AP