#include using namespace std; int main() { int tall,hev; cout<<"what is your height : "<>tall; cout<<"what is your weight : "<>hev; int a=tall-110; cout<<"The normative weight is : "<<<" kg "<<<"Your weight is : "<<<" kg "<=upper) { cout<<"I'm sorry to say that you should to reduce weight......"<<=lower) { cout<<"I think you're too skinny . You should eat more..."<<<"congratulations ! You have a good weight !"<
测身体健康体重的一个小程序
最新推荐文章于 2022-09-20 20:41:09 发布
本文介绍了一个简单的C++程序,用于计算用户的理想体重,并根据输入的实际体重给出健康建议。程序首先提示用户输入身高和体重,然后计算出理想体重并与实际体重进行比较。
5412

被折叠的 条评论
为什么被折叠?



