{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "a27288a39f4b4bcb96316f366f386b4f",
  "keywords": "算法初阶,排序和顺序统计量,中位数和顺序统计量",
  "title": "找出小于平均值的数。",
  "desc": [
    {
      "content": "\n<p>从键盘输入一个正整数存入变量n中&#xff0c;再输入n个整数&#xff0c;然后找出所有小于平均值的数&#xff0c;并按输入顺序输出。\n</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 i,n,sum=0,a[100];\n\tfloat ave;\n\tscanf(\"%d\",&n);\n\tfor(i=0;i<n;i++){\n\t\tscanf(\"%d\",&a[i]);\n\t\tsum+=a[i];\n\t}\n\tave=sum*1.0/n;\n\tfor(i=0;i<n;i++){\n\t\tif(a[i]<ave)\n\t\t\tprintf(\"%d\",a[i]);\n\t}\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-eaf833a2755343bd8b00dd67e8473e59",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600470164"
}