C/C++: Afficher le code ASCII d’un caractère

Author:


Download

#include 
#include 

int main(void)
{
  char ch;

  for(;;)
  {
  printf("Entrer un Caractère, 'q' pour quitter: ");
  ch = getchar();
  if(ch=='q')
	  break;
  printf("nCode Ascii de '%c' %d", ch , ch);

  };
  return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *