C Code for Heart Rate

This c programming code is used to find the heart rate. You can select the whole c code by clicking the select option and can use it. When you click text, the code will be changed to text format. This c program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this c code and use it to find the heart rate.

#include<stdio.h>
int main(void)
{
    float rate=12,age=50;
    float maxrate = 220;
    float heartrate = maxrate - age;
    float val = heartrate - rate;
    
        float res1 = (val*0.4);
        float res2 = (val*0.6);
        
        float targetmin = res1+rate;
        float targetmax = res2+rate;
    
    printf("\nHeart beat low rate: %.1f - %.1f",targetmin,targetmax);
   
        res1 = (val*0.6);
        res2 = (val*0.7);
   
        targetmin = res1+rate;
        targetmax = res2+rate;
    printf("\nHeart beat medium rate: %.1f - %.1f",targetmin,targetmax);
    
        res1 = (val*0.7);
        res2 = (val*0.85);
    
        targetmin = res1+rate;
        targetmax = res2+rate;
    printf("\nHeart beat high rate: %.1f - %.1f",targetmin,targetmax);
    return 0;
}
Other Programming Codes
Online Calculator : Heart Rate
Click on the select code link to copy and paste this free c program code for heart rate.

english Calculators and Converters