Programme en C

sks -  
[Dal] Messages postés 6122 Date d'inscription   Statut Contributeur Dernière intervention   -
Bonjour,

J'ai besoin d'un algorithme d'un programme qui affiche le code ASCII d'un caractère tapé au clavier.

2 réponses

  1. [Dal] Messages postés 6122 Date d'inscription   Statut Contributeur Dernière intervention   1 108
     
    Salut sks,

    algorithme ≠ programme informatique

    https://www.commentcamarche.net/contents/6-algorithme-definition-et-introduction

    Dal
    1
  2. fiddy Messages postés 441 Date d'inscription   Statut Contributeur Dernière intervention   1 847
     
    Bonjour,

    Pas besoin d'algorithme, c'est très simple.
    int car;
    car=getchar();
    printf("code ascii de \"%c\" : %d\n",car,car);
    



    Google is your friend
    0