Created
April 24, 2015 00:53
-
-
Save rogerioagjr/2f4102726b9e7bf637f6 to your computer and use it in GitHub Desktop.
Caractere
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> // scanf e printf | |
int main(){ | |
int n; // declaro a variável n | |
scanf("%d", &n); // leio o valor de n | |
printf("%c\n", 'a'-1+n); // imprimo o caractere de código 'a'-1+n | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment