desislava_topuzakova

04. Numbers N...1

Mar 1st, 2021
747
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. n = int(input())
  2. #за всяко едно число от [n до 1]
  3. # печатам и намалям с 1
  4.  
  5. for number in range(n, 0, -1):
  6.     print(number)
  7.  
  8. # ако имаме намаляващ цикъл (отрицателна стъпка)
  9.     # края - 1
  10.  
  11. # ако имаме нарастващ цикъл (положителна стъпка)
  12. # края + 1
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×