Categories
Easy Problems

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

จงเขียนฟังก์ชั่นที่รับค่า string เข้าไปแล้ว ให้ส่งค่าที่เป็น integer ของ string นั้นออกมาโดย +1 ก่อนส่งออกมา

Examples
stringInt(” 6″) ➞ 7

stringInt(“1000 “) ➞ 1001

stringInt(“12”)➞13

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

Leave a Reply