C Program To Determine Age

in Steem For Pakistan4 days ago

Image cover

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, &currentYear);
age = currentYear - birthYear;
printf("Age = %d\n", age);
return 0;
}

IPFS Video

Posted with Speem

Sort:  
Loading...

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:

Image

Curated by @nevlu123

Coin Marketplace

STEEM 0.06
TRX 0.31
JST 0.061
BTC 67744.77
ETH 2091.48
USDT 1.00
SBD 0.50