Guest User

Untitled

a guest
Mar 23rd, 2018
92
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, t, d;
  6. printf("Digite um numero: ");
  7. scanf("%d", &n);
  8. t = (n*3);
  9. d = (n*2);
  10. s = (t+1)+(d-2);
  11. printf("A soma do sucessor do triplo de %d com o \n antecessor do dobro de %d e %d", n, n, s);
  12. }
Add Comment
Please, Sign In to add comment