Advertisement
MUstar

IoT Python3 0816 - while

Aug 15th, 2017
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. s = 0
  2. x = 1
  3. while x <=10:
  4.     s = s +x;
  5.     print("x:", x,"sum:", s)
  6.     x = x +1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement