how to create a program in c++ to calculte body mass index of a person?

-- set height AS float
-- set weight AS float

1. Ask the user to input their weight
2. Ask the user to input their height
3. Calculate the results (weight/(height*2)
4. Display the results
:) If you make an effort with your code and are still stuck, someone will be glad to help you!

Good luck.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.