Horje
recursive python program to print numbers from n to 1 Code Example
recursive python program to print numbers from n to 1
# Read the input
n = int(input())

def rec(n):
    if n==0:
        print(0)
    else:
        print(-n)
        rec(n-1)
        print(n)

rec(n)




Python

Related
Exception: 'ascii' codec can't decode byte 0xe2 in position 7860: ordinal not in range(128) Code Example Exception: 'ascii' codec can't decode byte 0xe2 in position 7860: ordinal not in range(128) Code Example
show all rows python Code Example show all rows python Code Example
How to  use threading in pyqt5 Code Example How to use threading in pyqt5 Code Example
count frequency of characters in string Code Example count frequency of characters in string Code Example
python json open file Code Example python json open file Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7