12 lines
165 B
Go
12 lines
165 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
x := "hello"
|
||
|
for _, x := range x {
|
||
|
x := x + 'A' - 'a'
|
||
|
fmt.Printf("%c", x) // "HELLO" (one letter per iteration)
|
||
|
}
|
||
|
}
|