3073 最高分数

复制代码
#include<bits/stdc++.h>
using namespace std;

int main()
{
    int x,maxx = 0; //公理:求最大值时,要初始化最小
    for(int i = 1; i <= 5; i++) //循环5次
    {
        cin >> x;
        if(x > maxx) //如果x比最大值maxx大
            maxx = x; //更新最大值maxx 
    } 
    cout << maxx;
    return 0;
}
复制代码

 

posted @   CRt0729  阅读(23)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示