Exemplo 06 – C++ Tabela Ascii Completa

#include <stdio.h>

#include <stdlib.h>

#include <locale.h>

main(){

       setlocale(LC_ALL,"Portuguese");

       system("color B1");

       char ch;

       printf("\n\n\tTabela ASCII!\n");

       printf("\n\n\t\t*Letras Minúsculas*\n");

       for (ch="a";ch<="z";ch++){

        printf("\n\tO valor ASCII de %c é %d",ch,ch);

             _sleep(50);

       }

       printf("\n\n\t\t*Letras Maiúsculas*\n");

       for (ch="A";ch<="Z";ch++){

        printf("\n\tO valor ASCII de %c é %d",ch,ch);

             _sleep(50);

       }

       printf("\n\n\t\t*Números*\n");

       for (ch="0";ch<="9";ch++){

        printf("\n\tO valor ASCII de %c é %d",ch,ch);

             _sleep(50);

       }     

      

       system("PAUSE>nul");

       return 0;

}

Compartilhe!

Deixe um comentário