mirror of https://github.com/01-edu/public.git
clarify instructions in the readme and rename bool to boolean
This commit is contained in:
parent
26f70ef967
commit
dc84c8feb3
|
@ -2,9 +2,10 @@
|
|||
|
||||
### Instructions
|
||||
|
||||
Create a `.go` file and copy the code below into our file
|
||||
Create a `.go` file and copy the code below into that file
|
||||
and add the code necessary so the program works.
|
||||
|
||||
- The main task is to return a working program.
|
||||
- The program must be submitted inside a folder with the name `boolean`.
|
||||
|
||||
```go
|
||||
func printStr(str string) {
|
||||
|
@ -36,11 +37,9 @@ func main() {
|
|||
### Expected output
|
||||
|
||||
```console
|
||||
student@ubuntu:~/student/boolean$ go build
|
||||
student@ubuntu:~/student/boolean$ ./boolean "not" "odd"
|
||||
I have an even number of arguments
|
||||
```
|
||||
|
||||
### Or
|
||||
|
||||
```console
|
||||
student@ubuntu:~/student/boolean$ ./boolean "not even"
|
||||
I have an odd number of arguments
|
||||
```
|
Loading…
Reference in New Issue