Allez prendre plusieurs entrées en utilisant Scan ()
package main
import "fmt"
func main() {
// create variables
var name string
var age int
// take name and age input
fmt.Println("Enter your name and age:")
fmt.Scan(&name, &age)
// print input values
fmt.Printf("Name: %s\nAge: %d", name, age)
}
SAMER SAEID