Computer Fundamental
5801012630092 Thanyanan Aiamsamang
วันพุธที่ 16 กันยายน พ.ศ. 2558
Lab 4x Summary of integers
def setup():
count=20
print("summary = ",sum_int(count))
def sum_int(count):
n = 1
sum = 0
while (n <= count):
sum = sum+n
n = n+1
return sum
setup()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น