ไม่ทราบใครพอจะช่วยรันโปรแกรมคณิตศาสตร์นี้ได้ไหมครับ ว่าได้ค่าเท่าไร

โปรแกรมแรก
count=0
maxn=100
for a= 0 :maxn
     for b=0 :maxn
          for c=0 :maxn
               if a+b+c == 100
                    count=count+1;
               end
          end
     end
end
count

โปรแกรมที่สอง
count=0
maxn=1000
for a= 0 :maxn
     for b=0 :maxn
          for c=0 :maxn
               if a+b+c == 1000
                    count=count+1;
               end
          end
     end
end
count

ขอบพระคุณมากเลยครับ
แสดงความคิดเห็น
โปรดศึกษาและยอมรับนโยบายข้อมูลส่วนบุคคลก่อนเริ่มใช้งาน อ่านเพิ่มเติมได้ที่นี่