Skip to content

Rusita24/logic-building-using-if.......else

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

#include<stdio.h>

void main() { float threshold=80,critical=100,sensor_temp ; printf("Enter patient body temp:\n"); scanf("%f",&sensor_temp); { if (sensor_temp<=threshold) { printf("Patient condition:NORMAL\n"); }

else if (sensor_temp >threshold && sensor_temp<critical)
    {
     printf("Patient condition:WARNING\n");
    }

else
     {
     printf("Patient condition:CRITICAL\n");
     }
} 

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published