Multiple input and output
📖 Scenario: You are creating a simple program to record the names and ages of three friends. You will input their names and ages, then display this information clearly.
🎯 Goal: Build a C program that takes the names and ages of three friends as input and then prints each friend's name with their age.
📋 What You'll Learn
Use arrays to store names and ages
Use a loop to input data for three friends
Use a loop to output the stored data
Use
scanf and printf for input and output💡 Why This Matters
🌍 Real World
This kind of program helps in collecting and displaying simple records like names and ages, useful in small databases or contact lists.
💼 Career
Understanding multiple inputs and outputs is essential for many programming tasks such as data entry, processing user information, and building interactive applications.
Progress0 / 4 steps