#include <stdio.h>
#include <conio.h>
#define DAYS_IN_YEAR 365.25
int main()
{
int years;
double days, hours, mins;
unsigned __int64 NumOfBeats;
printf("Enter the number of years of lifetime: ");
scanf_s("%d", &years);
days = years * DAYS_IN_YEAR;
hours = days * 24;
mins = hours * 60;
NumOfBeats = mins * 60;
printf("Number of hurt beats: %u", NumOfBeats);
printf("\nPress any key to exit...");
_getch();
return 0;
}
Comments