package main
import (
"bufio"
"fmt"
"os"
)
func main() {
a := 100
b := 3.14
c := true
d := "hello world"
e := `ruby`
f := 'A'
fmt.Printf("%T,%b\n",a,a)
fmt.Printf("%T,%f\n",b,b)
fmt.Printf("%T,%t\n",c,c)
fmt.Printf("%T,%s\n",d,d)
fmt.Printf("%T,%s\n",e,e)
fmt.Printf("%T,%d,%c\n",f,f,f)
fmt.Printf("%v\n",a)
fmt.Printf("%v\n",b)
fmt.Printf("%v\n",c)
fmt.Printf("%v\n",d)
fmt.Printf("%v\n",e)
fmt.Printf("%v\n",f)
var x int
var y float64
fmt.Println("please input")
fmt.Scanln(&x,&y)
fmt.Printf("a:%d,b:%f",x,y)
fmt.Scanf("%d,%f",&x,&y)
fmt.Printf("x:%d,y:%f",x,y)
fmt.Println("please input")
reader:=bufio.NewReader(os.Stdin)
s1,_:=reader.ReadString('\n')
fmt.Println("data:",s1)
}
int,1100100
float64,3.140000
bool,true
string,hello world
string,ruby
int32,65,A
100
3.14
true
hello world
ruby
65
please input
100 3.14
a:100,b:3.140000222,3456.2
x:222,y:3456.200000please input
122
data: 122