當前位置:編程學習大全網 - 電腦編程 - C++編程題:任意讀入兩個整數,輸出其中的較小數

C++編程題:任意讀入兩個整數,輸出其中的較小數

#include<iostream>

using namespace std;

int main(){

int a,b,c;

cout<<"請輸入任意兩個數:"<<endl;

cin >> a>>b;

c= (a<b)?a:b;

cout<<"較小的是:"<<c<<endl;

System("pause");

return 0;

}

  • 上一篇:加工中心加工四個ψ10的孔~四個孔是對稱的,用G68指令,用的是ψ8的刀擴孔的 請問怎麽編程 尺寸隨便。
  • 下一篇:按鍵精靈類似軟件~不受遊戲監控~
  • copyright 2024編程學習大全網