#include < stdio.h> void main() { float height; printf("Enter the Height (in centimetres) \n"); scanf("%f", &height); if (height < 150.0) printf("Dwarf \n"); else if ((height >= 150.0) && (height <= 165.0)) printf(" Average Height \n"); else if ((height >= 165.0) && (height <= 195.0)) printf("Taller \n"); else printf("Abnormal height \n"); }
Output
Enter the Height ( in centimetres ) 165 Average Height Enter the Height ( in centimetres ) 140 Dwarf Enter the Height ( in centimetres ) 190 Taller
For More Details Please Visit Ictjobs.info
No comments:
Post a Comment