Write a c program that calculates how many times the heart b

Write a c program that calculates how many times the heart beats in 50 years. use 365 for days in a year. do not use floats or doubles.

Solution

#include<stdio.h>
int main(void)
{
    int average_rate = 80;    //80 beats per minute
    int per_hour = 80 * 60;
    int per_day = 24 * per_hour;
    int per_year = 365 * per_day;
    long int total = 50 * per_year;
    printf(\"Per Hour %d\ \", per_hour);
    printf(\"Per Day %d\ \", per_day);
    printf(\"Per Year %d\ \", per_year);
    printf(\"Per Hour %d\ \", per_hour);
    printf(\"For 50 Years %d\ \", total);
    return 0;
}

Write a c program that calculates how many times the heart beats in 50 years. use 365 for days in a year. do not use floats or doubles.Solution#include<stdio

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site