Browse Source

Simplify subject (bc tester limitations)

content-update
4 years ago committed by xpetit
parent
commit
c139c282f8
  1. 19
      subjects/pilot.en.md

19
subjects/pilot.en.md

@ -2,31 +2,24 @@
### Instructions ### Instructions
Write a `go` file so that the following program compiles. Append to the code below what's needed so that the program compiles.
### Note:
- The code bellow must be submitted.
- Be careful with the expected files.
### Usage ### Usage
```go ```go
package main package main
import ( import "fmt"
"fmt"
student ".."
)
func main() { func main() {
var donnie student.Pilot var donnie Pilot
donnie.Name = "Donnie" donnie.Name = "Donnie"
donnie.Life = 100.0 donnie.Life = 100.0
donnie.Age = 24 donnie.Age = 24
donnie.Aircraft = student.AIRCRAFT1 donnie.Aircraft = AIRCRAFT1
fmt.Println(donnie) fmt.Println(donnie)
} }
const AIRCRAFT1 = 1
``` ```

Loading…
Cancel
Save