C Program to Input Name and Age and Display Them
Introduction:
This C program accepts a user's name and age as input and then displays the entered values on the screen. It is a simple beginner-level C program that demonstrates how to take user input using scanf() and display output using printf().
In this example, we will create a character array to store the user's name and an integer variable to store the age. The program then displays both values entered by the user.