Question: using visual studio , write a c program using printf , scanf start with #include #include Prompt the user to enter the year that they
using visual studio , write a c program using printf , scanf
start with
#include
#include
Prompt the user to enter the year that they were born.
Calculate and output how old they are.
Dont worry about month/day they were born, just do a simple calculation using the current year (2018).
Using if statements, catch and output the following conditions:
If they are born after 2018, print that they input an incorrect value.
If they are over 122 years old, print that they have set a new record with their age.
These are the only two required, but feel free to add more data validation statements if you want.



output should look like this
Enter the year you were born: 197e ou are 48 years old Press any key to continue 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
