简介
在本挑战中,你将通过创建一个程序来展示你对数组初始化和操作的理解,该程序用于跟踪编程课程中学生的表现。你需要创建一个整数数组来存储 5 个学生的分数,将数组初始化为 70 到 100 之间的分数,使用 for 循环打印每个学生的分数,并计算并显示班级的平均分数。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
c(("C")) -.-> c/ControlFlowGroup(["Control Flow"])
c(("C")) -.-> c/CompoundTypesGroup(["Compound Types"])
c(("C")) -.-> c/UserInteractionGroup(["User Interaction"])
c/ControlFlowGroup -.-> c/for_loop("For Loop")
c/CompoundTypesGroup -.-> c/arrays("Arrays")
c/UserInteractionGroup -.-> c/output("Output")
subgraph Lab Skills
c/for_loop -.-> lab-446194{{"操作学生分数数组"}}
c/arrays -.-> lab-446194{{"操作学生分数数组"}}
c/output -.-> lab-446194{{"操作学生分数数组"}}
end