This is a recursive function is used to find the sum from 1 to the number of users input. A variable x for receiving information from the user. A run the work itself, so every time a run myself where x is reduced by 1 when x is 0, it stops working.
เป็นซ้ำการใช้ฟังก์ชันหาผลรวมจาก 1 จำนวนผู้ใช้ป้อนข้อมูล ตัวแปร x ในการรับข้อมูลจากผู้ใช้ ใช้งานเอง ดังนั้นทุกครั้งที่รันตัวเอง x จะลดลง โดยเมื่อ 1 x 0 มันหยุดทำงาน
นี่คือฟังก์ชันเวียนจะใช้ในการหาผลรวมจาก 1 ถึงจำนวนผู้ใช้ป้อนข้อมูล ตัวแปร x สำหรับการรับข้อมูลจากผู้ใช้ การทำงานการทำงานของตัวเองเพื่อให้ทุกเวลาทำงานตัวเองโดยที่ x จะลดลง 1 เมื่อ x เป็น 0 จะหยุดทำงาน