Skip to content

Instantly share code, notes, and snippets.

@narita1980
Created May 14, 2013 05:05
Show Gist options
  • Save narita1980/5573837 to your computer and use it in GitHub Desktop.
Save narita1980/5573837 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"strconv"
"strings"
)
func main() {
for i := 1; i <= 100; i++ {
var str = strconv.Itoa(i)
if i % 3 == 0 || strings.Contains(str, "3") {
fmt.Printf("しゃ~ん\n")
} else {
fmt.Printf("%d\n", i)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment