{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "3fa9f3d1423842008b789a377afdbab8",
  "keywords": "算法初阶,基础知识,函数的增长,标准记号与常用函数",
  "title": "计算函数的值",
  "desc": [
    {
      "content": "\n<p>编程输入实数x&#xff0c;计算下面函数的值&#xff0c;并输出y的值&#xff0c;并输出y的值&#xff1b;\nx<sup>2</sup>         x&lt;1\n3x-1      1≦x≦10\nx/5        x&gt;10</p>",
      "language": "markdown"
    }
  ],
  "answer": [
    {
      "content": "",
      "language": "cpp"
    }
  ],
  "prepared": [
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ],
    [
      {
        "content": "",
        "language": "cpp"
      }
    ]
  ],
  "template": {
    "content": "# include<stdio.h>\n# include<stdlib.h>\nint main(void)\n{\n\tfloat x,y;\n\tprintf(\"请输入x的值：\\n\");\n\tscanf(\"%f\",&x);\n\tif(x<1)\n\t{\n\t\ty = x * x;\n\t}\n\telse if(x<=10)\n\t{\n\t\ty=3*x-1;\n\t}\n\telse\n\t{\n\t\ty= x / 5;\n\t}\n\tprintf(\"y的值为：%f\\n\",y);\n\tsystem(\"pause\");\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-f8b6fc2e76794fa78ddc5af2c95f9835",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600470171"
}