Programming Fundamentals
20 กันยายน 2558
Lab4x Sum of Integers
def setup():
max_val = 10
count=0
result=0
while (count <= max_val):
result += count
count+=1
print("Sum of Integers from 1 to",max_val,"=",end="")
print(" '",result,"'",sep="")
setup()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น