August 2021
Beginner
112 pages
1h 23m
English
| Puzzle 12 | A Funky Number? |
| | package main |
| | |
| | import ( |
| | "fmt" |
| | ) |
| | |
| | func main() { |
| | fmt.Println(0x1p-2) |
| | } |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will print: 0.25
Go has several number types. The two main ones are
These are whole numbers. Go has int8, int16, int32, int64, and int. There are also all the unsigned ones such as uint8 and so on.
These are real numbers. Go ...
Read now
Unlock full access