If01. Given an integer. If it is positive, then add 1; Otherwise do not change it. Output the resulting number.

Решение на Python 3:

A = int(input("Enter the number: "))

if A > 0:
A += 1

print(A)