题解 | #判断整数奇偶性#

最高分数

http://www.nowcoder.com/practice/52c18a3b49a54fc98107fbdde1415f90


int main()
{
    int i = 0;
    int score[3]= {0};
    for(i = 0;i<3;i++)
    {
        scanf("%d",&score[i]);
    }
    for(i= 0 ;i<3;i++)
    {
        int j = 0;
        for(j = 0;j<3-i;j++)
        {
            if(score[j]<score[j+1])
            {
            int tmp = score[j];
            score[j]=score[j+1];
            score[j+1] = tmp;
            }
        }
    }
    printf("%d",score[0]);
    return 0;
}
全部评论

相关推荐

10-13 16:58
门头沟学院 Java
点赞 评论 收藏
分享
gelmanspar...:奖学金删掉,自我评价删掉,简历压缩一下,写一页
如果再来一次,你还会学机...
点赞 评论 收藏
分享
评论
1
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务