Is it in range? · อยู่ในช่วงหรือไม่?
Is it in range?
n is 14. Print yes when n is both more than 10 and less than 20. Print no otherwise.
and needs both sides to be true. Write each side as a complete question: n > 10 and n < 20, not 10 < n < 20 and.
อยู่ในช่วงหรือไม่?
n คือ 14. ให้พิมพ์ yes เมื่อ n มีค่า มากกว่า 10 และ น้อยกว่า 20 พร้อมกัน ให้พิมพ์ no ในกรณีอื่น ๆ
ตัวเชื่อม AND (and) ต้องการให้ ทั้งสอง ด้านเป็นจริง你必须 Write each side as a complete question: n > 10 and n < 20, not 10 < n < 20 and.
n is 14. Print yes when n is both more than 10 and less than 20. Print no otherwise. · n คือ 14. ให้พิมพ์ yes เมื่อ n มีค่า มากกว่า 10 และ น้อยกว่า 20 พร้อมกัน ให้พิมพ์ no ในกรณีอื่น ๆ
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่