#include<iostream>
using namespace std;
#include<string>
#include<ctime>

int main()
{
    //成绩统计
    int scores[3][3] = 
    {
        {100,100,100},
        {90,50,100},
        {60,70,80}
    };

    string names[3] = { "张三","李四","王五" };

    for (int i = 0; i < 3; i++) 
    {
        int sum = 0;
        for (int j = 0; j < 3; j++) 
        {
            sum += scores[i][j];
        }
        cout << names[i] << "的总成绩为:" << sum << endl;
    }

    
    
    system("pause");
    return 0;

}

 

相关文章:

  • 2022-01-11
  • 2021-07-26
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2021-05-29
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-08-27
  • 2021-09-28
  • 2022-01-03
相关资源
相似解决方案