Ответ:
n = int(input())
print('The next number for the number ', n, ' is ', n+1,'.',sep='')
print('The previous number for the number ', n, ' is ', n-1,'.',sep='')
if -1000<=n<=1000:
print(f"The next number for the number {n} is {n+1}\nThe previous
number for the number {n} is {n-1}")
else:
print(f"The number {n} is out of range")
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
n = int(input())
print('The next number for the number ', n, ' is ', n+1,'.',sep='')
print('The previous number for the number ', n, ' is ', n-1,'.',sep='')
Verified answer
n = int(input())
if -1000<=n<=1000:
print(f"The next number for the number {n} is {n+1}\nThe previous
number for the number {n} is {n-1}")
else:
print(f"The number {n} is out of range")