Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion 23-input-scanning/exercises/01-uppercaser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
// Follow me on twitter: https://twitter.com/inancgumus

package main

import (
"fmt"
"bufio"
"os"
"strings"
)
// ---------------------------------------------------------
// EXERCISE: Uppercaser
//
Expand All @@ -25,4 +30,7 @@ package main
// ---------------------------------------------------------

func main() {
in:=bufio.NewScanner(os.Stdin)
for in.Scan(){
fmt.Println(strings.ToUpper(in.Text()))
}