Basic Input Concepts in Go
📖 Scenario: You are creating a simple Go program that asks a user for their name and age, then greets them with this information.
🎯 Goal: Build a Go program that reads user input for name and age, then prints a greeting message including both.
📋 What You'll Learn
Use
fmt.Scanln to read user inputStore the name in a variable called
nameStore the age in a variable called
agePrint the greeting using
fmt.Printf with the exact format💡 Why This Matters
🌍 Real World
Reading user input is essential for interactive command-line tools and simple programs that need user data.
💼 Career
Understanding basic input/output in Go is important for backend development, scripting, and building CLI applications.
Progress0 / 4 steps
