Write a program that reads and displays your first name and date of birth on two different lines.
Difficulty level
This exercise is mostly suitable for students
#include <stdio.h>
int main()
{
char name[200], date[200];
printf("Enter name and birth date (dd-mm-yyy): ");
scanf("%s %s", name, date);
printf("Name = %s\n",name);
printf("Date of birth = %s\n",date);
return 0;
}
Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Analyze comma-separated list of words