{
  "type": "code_options",
  "author": "csdn.net",
  "source": "solution.md",
  "exercise_id": "ca289aac5d3144f4a33a3588d91c49b2",
  "keywords": "算法初阶,最小值和最大值,排序和顺序统计量,中位数和顺序统计量",
  "title": "任意输入10数，存入数组，找出显示最大值，并且标记所在位置。",
  "desc": [
    {
      "content": "\n任意输入10数，存入数组，找出显示最大值，并且标记所在位置。",
      "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 a[10],i,max,maxindex;\n\tfor(i =0;i<10;i++)\n\t\tscanf(\"%d\",&a[i]);\n\tmax = a[0];  \n\tmaxindex = 0;\n\tfor (i =1;i<10;i++)\n\t{\n\t\tif(a[i] > max)\n\t\t{\n\t\t\tmax = a[i];\t\n\t\t\tmaxindex = i;  \n\t\t}\n\t}\n\tprintf(\"最大值%d，索引:%d\\n\",max,maxindex);\n\treturn 0;\n}",
    "language": "cpp"
  },
  "node_id": "dailycode-ae5a4a9413e849e4825de0a930c4649a",
  "license": "csdn.net",
  "created_at": 1637894160,
  "topic_link": "https://bbs.csdn.net/topics/600469936"
}