public/subjects/printascii
Hamza elkhatri 5cbf005b3b Update README.md 2022-06-23 14:34:53 +00:00
..
README.md Update README.md 2022-06-23 14:34:53 +00:00

README.md

print-ascii

Instructions

Write a program that prints the ASCII value of a letter passed in the command line

  • If the argument is not a letter nothing will be printed
  • if the number of arguments is not 1 then nothing will be printed

Usage

$ go run .
$ go run . a
97
$ go run . 'A'
65
$ go run . 'z'
122
$ go run . Z
90
$ go run . 1
$ go run . "Hello" "Word"