Advertisement
elizeub

Sucessor e Antecessor em Python

Jul 11th, 2021
979
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. # Este programa gera o sucessor e o antecessor de um numero
  2.  
  3. n = int(input('Entre com um numero: '))
  4. print('Numero: {} | Antecessor: {} | Sucessor: {}'.format(n, (n-1), (n+1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement