Guest User

Untitled

a guest
Mar 23rd, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main (){
  4.  
  5. int n, a, s;
  6. printf("Digite um numero: ");
  7. scanf("%d", &n);
  8. a = n-1;
  9. s = n+1;
  10. printf("------------\n");
  11. printf("--Antecessor e Sucessor--\n");
  12. printf("------------\n");
  13. printf("%d - %d - %d", a, n, s);
  14. }
Add Comment
Please, Sign In to add comment