Get the X compared. If more than equal to the 1 calculated in function sumTo (- x 1) is x negative values to 1 and plus x first. Pass to check around. Until you check less than equal to 1.
เอา X มาเปรียบเทียบ ถ้ามากกว่าเท่ากับ 1 การคำนวณในฟังก์ชันซัมโต้ ( - x 1 ) x 1 และบวกลบค่า x ก่อน ผ่านการตรวจสอบรอบ ๆ จนกว่าคุณจะตรวจสอบน้อยกว่าเท่ากับ 1