Answers for "C program determines the height status for heights in cm"

C
0

C program determines the height status for heights in cm

#include <stdio.h>
void main() 
{
	float ht;
	printf("Enter the Height (in centimetres)\n");
	scanf("%f",&ht);
	if(ht < 150.0)
		printf("Dwarf\n"); 
    else if((ht>=150.0) && (ht<=165.0))
    	printf(" Average Height\n"); 
    else if((ht>=165.0) && (ht <= 195.0))
		  printf("Taller\n"); 
    else
		  printf("Abnormal height\n");
}
/* End of main() */
Posted by: Guest on March-16-2022

Code answers related to "C program determines the height status for heights in cm"

Code answers related to "C"

Browse Popular Code Answers by Language