Categories
Easy Problems

โจทย์เขียนโปรแกรมข้อ VZ0003

จงเขียนฟังก์ชั่นที่รับเลขจำนวนเต็มเข้าไป แล้วแสดงผลลัพธ์จากการนำ 1 บวกเข้ากับเลขนั้นออกมา

Examples
addition(0) ➞ 1

addition(9) ➞ 10

addition(-3) ➞ -2

เฉลย ด้วยภาษา Python

Leave a Reply