Correct order

Report a typo

Arrange the lines of the program in the correct order so that it can output each character on a separate line.

Input example:

Hello!

Output:

H
e
l
l
o
!
Reorder lines using drag or arrows. Adjust indentation with left buttons
                func main() {
              
                scanner.Split(bufio.ScanRunes)
              
                scanner := bufio.NewScanner(os.Stdin)
              
                }
              
                for scanner.Scan() {
              
                }
              
                fmt.Println(scanner.Text())
              
___

Create a free account to access the full topic