C Program To Determine Age
Dear friends, today I have come with another post with you. In this post today, I will share with you how to calculate age using the C program. In this video, I have shown you how to run the C program and find out your age by giving the year and current year as input. I have shown you how to run the C program and input the result and show you the result. I hope you have understood it very easily and if you want, you can copy that program from there. I am giving a program below this article, then it will be convenient for you. You can run the copied program from here.
#include <stdio.h>
int main() {
int birthYear, currentYear, age;
printf("Enter birth year and current year: ");
scanf("%d %d", &birthYear, ¤tYear);
age = currentYear - birthYear;
printf("Age = %d\n", age);
return 0;
}
Posted with Speem

Your post have been rewarded by the Speak on Steem curator team!
Now become a plus member delegating at least 500 SP
Ways to support us:
Curated by @nevlu123