write a program which inputs a person's height (in centimeters) and weight (in kilograms) and outputs one of the messages: UNDERWEIGHT , NORMAL , OR OVERWEIGHT , using the criteria:
UNDERWEIGHT : weight <height/2.5
NORMAL : height/2.5<=weight<=height/2.3
OVERWEIGHT : height/2.3 < weight
1
Expert's answer
2013-02-06T07:51:54-0500
#include <conio.h> #include <iostream>
using namespace std;
void main() { int height, weight;
cout << "Enter a person's height in centimeters: "; cin >> height;
cout << "Enter a person's weight in kilograms: "; cin >> weight; cout << endl;
Comments
Dear Client, please use panel for submitting new questions
Write and run a program that causes negative overflow of a variable of type short int.
Leave a comment