Last active
August 29, 2015 14:19
-
-
Save rogerioagjr/48e65c7dc3cdd4731a79 to your computer and use it in GitHub Desktop.
soma 10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> // printf e scanf | |
int main(){ | |
int num; // declaro a variável inteira de nome "num" | |
scanf("%d", &num); // leio o que está na tela e salvo na variável "num" | |
printf("%d\n", num+10); // imprimo o valor de "num" somado a 10 | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment