mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
488 B
23 lines
488 B
2 years ago
|
## getalpha
|
||
2 years ago
|
|
||
|
### Instructions
|
||
|
|
||
2 years ago
|
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`.
|
||
2 years ago
|
|
||
2 years ago
|
- 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`.
|
||
2 years ago
|
|
||
|
### Usage
|
||
|
|
||
|
```go
|
||
|
$ go run . | cat -e
|
||
|
$
|
||
|
$ go run . "98" | cat -e
|
||
2 years ago
|
b
|
||
2 years ago
|
$ go run . "95" | cat -e
|
||
2 years ago
|
_
|
||
2 years ago
|
$ go run . "95" "102" | cat -e
|
||
|
$
|
||
2 years ago
|
```
|