fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int rongPear(int a,int b){
  5. return a>b?b:a;
  6. }
  7. int main() {
  8. int big=10;
  9. int small=4;
  10. cout<<"孔融拿了"<<rongPear(big,small)<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
孔融拿了4