Advertisement
Prof_Carvalho

Untitled

Mar 3rd, 2020
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6.     int a,b;
  7.     printf("Informe um valor:");
  8.     scanf("%i", &a);
  9.     b = (2*a) + 1;
  10.     printf("Novo\n valor: %i\n", b);
  11.     return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement