14 lines
231 B
Go
14 lines
231 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
number := 43
|
||
|
|
||
|
fmt.Printf("%-2d - number\n", number)
|
||
|
fmt.Printf("%-2d - number tens place\n", number/10)
|
||
|
fmt.Printf("%-2d - number tens place multiplied by 10\n", (number/10)*10)
|
||
|
}
|