Merge: doc: fixed some typos and other misc. corrections
[nit.git] / contrib / pep8analysis / tests / terrasa / chari_charo.pep
1 ; Introduction à PEP8
2 ; Programme qui affiche le caractère saisi par l'utilisateur
3 ;
4 ; Alexandre Terrasa (c) 2013     
5
6          stro    msg1, d     ; print(msg1)
7          chari   char, d     ; char = chari()
8          stro    msg2, d     ; print(msg2)
9          charo   char, d     ; print(char)
10          stop
11
12 char:    .BYTE   0           ; on réserve un octet (initialisé à 0) pour stocker le caractère
13
14 msg1:    .ASCII  "Veuillez saisir un caractère: \x00"
15 msg2:    .ASCII  "\nLe caractère saisi est: \"\x00"
16
17          .END