sdut-1158 C语言实验——两个数最大
生活随笔
收集整理的這篇文章主要介紹了
sdut-1158 C语言实验——两个数最大
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
點擊打開鏈接 Time Limit:?1000MS?Memory Limit:?65536KB Submit?Statistic?Discuss
Problem Description
求兩個整數中的最大值。Input
兩個數。#include <iostream> using namespace std; int main() {int a,b;cin>>a>>b;if(a>=b)cout<<"max="<<a<<endl;elsecout<<"max="<<b<<endl;return 0; }/*************************************************** User name: YT1658506207邵雪源 Result: Accepted Take time: 0ms Take Memory: 204KB Submit time: 2017-07-26 15:04:46 ****************************************************/Output
輸出最大的值,格式為: max=最大值。Example Input
1 2Example Output
max=2總結
以上是生活随笔為你收集整理的sdut-1158 C语言实验——两个数最大的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: sdut-1117 C语言实验——求绝对
- 下一篇: sdut-2732 小鑫の日常系列故事(