Skip to content

Instantly share code, notes, and snippets.

@ampulhetadosaber
Created August 25, 2020 14:20
Show Gist options
  • Save ampulhetadosaber/05723c7abdbe5f4904c57e3cea392c6d to your computer and use it in GitHub Desktop.
Save ampulhetadosaber/05723c7abdbe5f4904c57e3cea392c6d to your computer and use it in GitHub Desktop.
char letra1, letra2; // Declarando uma variável do tipo char
letra2 = 'A'; // Atribuindo o caractere 'A'
cin << letra1; // Lendo uma variável do tipo char
cout << letra1 << " " << letra2; // Imprimindo duas variáveis do tipo char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment