Advertisement
Spocoman

01. Read Text

Sep 21st, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.19 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var text string
  7.     fmt.Scanln(&text)
  8.    
  9.     for i := 0; text != "Stop"; i++ {
  10.         fmt.Println(text)
  11.         fmt.Scanln(&text)
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement