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
!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
! 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