Home > other >  To solve the for loop in poython code
To solve the for loop in poython code

Time:09-23

An introduction to a small white, want to know for 1 + 2 +... N in pthon for loop implementation code?

CodePudding user response:

 
N=100
Sum=0
For I in range (1, n + 1) :
The sum +=I

Print (sum)

CodePudding user response:

reference procedures for building a smile monkey response:
 
N=100
Sum=0
For I in range (1, n + 1) :
The sum +=I

Print (sum)

Understand, thank you
  • Related