团体程序设计天梯赛-练习集 L1-061 新胖子公式 (10分)

在这里插入图片描述

#include<iostream>
using namespace std;
int main()
{
	float weight, height, count;
	cin >> weight >> height;
	count = 1.0*weight / (height*height);
	printf("%.1f\n", count);
	if (count > 25) cout << "PANG";
	else cout << "Hai Xing";
	return 0;
}
发布了161 篇原创文章 · 获赞 117 · 访问量 6041

猜你喜欢

转载自blog.csdn.net/qq_44458489/article/details/105233881