#6033: 請問我有哪邊出問題?? 自己抓不到@@


FDHS0 (兄弟象 加油!!)


#include <iostream>
#include <cstdlib>
using namespace std;
int max(int,int,int); 
int main(void)
{
    int x,y,z;
    while(cin >> x >> y >> z )
    cout << max(x,y,z) << endl;
      
    return 0; 
int max(int x,int y,int z)
{
    if(x>y && x>z)
      return x; 
    else if(y>z && y>x)
      return y;
    else if(z>x && z>y)
      return z;

#6050: Re:請問我有哪邊出問題?? 自己抓不到@@


snail (蝸牛)


要考慮會有相等的情況