Display ASCII and hexadecimal code
Hello,
The objective of this exercise is to display the ASCII and hexadecimal code of a digit or a letter.
Program menu (displayed in a loop until the user chooses to exit):
Hello, what would you like? :
1 - Display the ASCII and hexadecimal code
2 - Exit
…
If choice 1:
Please enter the letter or digit:
…
The code of … is: … in ASCII and … in hexadecimal
…
If choice 2:
Goodbye
Configuration: Windows / Firefox 68.0
The objective of this exercise is to display the ASCII and hexadecimal code of a digit or a letter.
Program menu (displayed in a loop until the user chooses to exit):
Hello, what would you like? :
1 - Display the ASCII and hexadecimal code
2 - Exit
…
If choice 1:
Please enter the letter or digit:
…
The code of … is: … in ASCII and … in hexadecimal
…
If choice 2:
Goodbye
Configuration: Windows / Firefox 68.0
2 answers
-
ContributorHello kOBENG,
Welcome to the forum.
This is not how the forum works:
https://www.commentcamarche.net/infos/25899-demander-de-l-aide-pour-vos-exercices-sur-ccm/
To get help, let us know what you have done and what you are stuck on. Indicating the programming language can also be information you might want to share.
When you post your code, make sure to use the syntax highlighting code tags on the forum.
https://codes-sources.commentcamarche.net/faq/10686-le-nouveau-codes-sources-comment-ca-marche#balises-code
Dal