{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "026cef91deb8490fbdfefb164bf020bf",
  "keywords": "算法初阶,基础知识,函数的增长,标准记号与常用函数",
  "title": "输入某人的身高（厘米）和体重（公斤），按下式确定此人的体重是否标准、过胖或过瘦",
  "desc": [
    {
      "content": "\n<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>",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "#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} ",
    "language": "cpp"
  },
  "node_id": "dailycode-0824e8c594e842248af440381b6aacd2",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600469850"
}