{
  "question_id": 7436897,
  "question_title": "输入某人的身高（厘米）和体重（公斤），按下式确定此人的体重是否标准、过胖或过瘦",
  "question_content": "<p>&#xff08;1&#xff09;标准体重&#61;&#xff08;身高-110&#xff09;公斤&#xff1b;\n&#xff08;2&#xff09;超过标准体重5公斤为过胖&#xff1b;\n&#xff08;3&#xff09;低于标准体重5公斤为过瘦。\n例如&#xff1a;输入身高和体重分别为160&#xff0c;60&#xff0c;输出为过胖\n输入身高和体重分别为160&#xff0c;50&#xff0c;输出为标准\n输入身高和体重分别是160&#xff0c;40&#xff0c;输出为过瘦</p>",
  "difficulty": "简单",
  "answer_id": 53409166,
  "answer_content": "<p>代码如下&#xff1a;</p>\n\n<pre>\n<code>#include &lt;stdio.h&gt;\n\n int main() \n { \n\t int h,w;\n\t printf(&#34;请输入身高&#xff08;厘米&#xff09;和体重&#xff08;公斤&#xff09;&#34;);\n\t scanf(&#34;%d %d&#34;,&amp;h,&amp;w);\n\n\tint s &#61; h - 110;\n\tif( (w-s) &gt; 5)\n\t\tprintf(&#34;过胖\\n&#34;);\n\telse if( s - w &gt; 5)\n\t\tprintf(&#34;过瘦&#34;);\n\telse if(s - w &#61;&#61; 0)\n\t\tprintf(&#34;标准\\n&#34;);\n\n\n\t //getchar();\n\t //getchar();\n\t return 0; \n } </code></pre>\n\n<p> </p>\n",
  "tag_name": "c语言",
  "cpp": "#include <stdio.h>\nint main() \n{ \n\tint h,w;\n\tprintf(\"请输入身高（厘米）和体重（公斤）\");\n\tscanf(\"%d %d\",&h,&w);\n\tint s = h - 110;\n\tif( (w-s) > 5)\n\t\tprintf(\"过胖\\n\");\n\telse if( s - w > 5)\n\t\tprintf(\"过瘦\");\n\telse\n\t\tprintf(\"标准\\n\");\n\treturn 0; \n} ",
  "topic_link": "https://bbs.csdn.net/topics/600469850",
  "status": 1,
  "keywords": "算法初阶,基础知识,函数的增长,标准记号与常用函数",
  "license": "csdn.net",
  "notebook": {
    "cpp": "https://codechina.csdn.net/csdn/csdn-daily-code/-/jupyter/master/data/notebook/answer/ipynb/cpp/63.ipynb?type=file"
  },
  "notebook_enable": 1,
  "author": "qq_45766327"
}