Advertisement
Hugo_2000

1. loops

Jun 27th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. # counts to n
  2. n = int(input("Insert a positive number: "));
  3. count = 0;
  4. while count <= n:
  5.     print(count);
  6.     count = count + 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement