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.
|
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)
|
|
}
|