Programming Fundamentals
This is my block and it's all about the code
วันอาทิตย์ที่ 20 กันยายน พ.ศ. 2558
Lab4x-Sum of Integer
def setup(firstNum,lastNum):
sum=0
while(firstNum<=lastNum):
sum=sum+firstNum
firstNum=firstNum+1
print("sum =",sum)
setup(1,10)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น
บทความใหม่กว่า
บทความที่เก่ากว่า
หน้าแรก
สมัครสมาชิก:
ส่งความคิดเห็น (Atom)
ไม่มีความคิดเห็น:
แสดงความคิดเห็น