2022-10-20 15:36:16 +00:00
|
|
|
## getalpha
|
2022-10-20 15:29:54 +00:00
|
|
|
|
|
|
|
### Instructions
|
|
|
|
|
2022-11-07 16:56:04 +00:00
|
|
|
Write a program that takes an `int` between `[0-127]` as an argument and returns the corresponding ASCII table character, followed by a newline `\n`.
|
2022-10-20 15:29:54 +00:00
|
|
|
|
2022-11-07 16:56:04 +00:00
|
|
|
- If the integer above 127 or less than 0 return a newline `\n`.
|
|
|
|
- If it's not a number return a newline `\n`.
|
|
|
|
- If the number of arguments is above 1 return a newline `\n`.
|
2022-10-20 15:29:54 +00:00
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```go
|
|
|
|
$ go run . | cat -e
|
|
|
|
$
|
|
|
|
$ go run . "98" | cat -e
|
2022-11-07 16:56:04 +00:00
|
|
|
b
|
2022-10-20 15:29:54 +00:00
|
|
|
$ go run . "95" | cat -e
|
2022-11-07 16:56:04 +00:00
|
|
|
_
|
2022-10-20 15:29:54 +00:00
|
|
|
$ go run . "95" "102" | cat -e
|
|
|
|
$
|
2022-11-21 14:41:48 +00:00
|
|
|
```
|