Advertisement
Joao_Joao

Questão 6 Lista de Exercícios IFPB

Apr 25th, 2022
641
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main() {
  4.   int n;
  5.   printf("Digite um numero: ");
  6.   scanf("%d", &n);  
  7.   printf("Antecessor de %d: %d\nSucessor de %d: %d\n", n, n-1, n, n+1);
  8.  
  9.   return 0;
  10. }
  11.  
Advertisement
RAW Paste Data Copied
Advertisement