> For the complete documentation index, see [llms.txt](https://www.monosor.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.monosor.dev/courses/ruby/variables-practice-solutions.md).

# ตัวแปร (เฉลยแบบฝึกหัด)

{% embed url="<https://repl.it/@narze/variables-practice-solution?lite=true>" %}

จากแบบฝึกหัด เราจะต้องสร้างตัวแปรเพื่อเก็บตัวเลข โดยการสร้าง `a, b, c และ d` ขึ้นมา โดย `d` จะเป็นการนำค่า `a` มาคูณกับ `b` และลบด้วย `c` อีกทีหนึ่ง จึงจะได้จำนวนแอปเปิลที่ยังไม่เสีย
