The Days Calculator if User Enters the Count of Year
#include<stdio.h>
int main()
{
int days;
float yrs;
printf("Enter your age =\n");
scanf("%f",&yrs);
days=yrs*365;
printf("%d days you are old",days);
}
Output:
Enter your age =
18
6570 days you are old
Comments
Post a Comment