2021年3月17日星期三

writing a code that adds up intergers between 2 numbers

This is what I have so far but Im not even sure it is correct:

count = 0  for i in range (4, 833):       count += 1  

here is the exact requirements: Write a code that will add up all of the integers between 4 and 832 (including 4 and 832) and print this number to the console (use a loop)

https://stackoverflow.com/questions/66684616/writing-a-code-that-adds-up-intergers-between-2-numbers March 18, 2021 at 12:06PM

没有评论:

发表评论