MUstar

IoT Python3 0816 - while

Aug 15th, 2017
60
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s = 0
  2. x = 1
  3. while x <=10:
  4.     s = s +x;
  5.     print("x:", x,"sum:", s)
  6.     x = x +1
RAW Paste Data