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.
26 lines
315 B
26 lines
315 B
6 years ago
|
## pilot
|
||
6 years ago
|
|
||
6 years ago
|
### Instructions
|
||
6 years ago
|
|
||
4 years ago
|
Append to the code below what's needed so that the program compiles.
|
||
5 years ago
|
|
||
6 years ago
|
### Usage
|
||
6 years ago
|
|
||
|
```go
|
||
|
package main
|
||
|
|
||
4 years ago
|
import "fmt"
|
||
6 years ago
|
|
||
|
func main() {
|
||
4 years ago
|
var donnie Pilot
|
||
6 years ago
|
donnie.Name = "Donnie"
|
||
|
donnie.Life = 100.0
|
||
|
donnie.Age = 24
|
||
4 years ago
|
donnie.Aircraft = AIRCRAFT1
|
||
6 years ago
|
|
||
|
fmt.Println(donnie)
|
||
|
}
|
||
4 years ago
|
|
||
|
const AIRCRAFT1 = 1
|
||
6 years ago
|
```
|