int larger(int x, int y){ if(x>y){ return x; }else{ return y; } } |
int larger(int x, int y){ int z; if(x>y){ z = x; }else{ z = y; } return z; } |
int larger(int x, int y){ if(x>y){ printf("z=%d\n",x); }else{ printf("z=%d\n",y); } } |
int larger(int x, int y){ int z; if(x>y){ z=x; }else if(y>x){ z=y; } return z; } |
int larger(int x, int y){ int z; if(x>y){ z=x; printf("z=%d\n",z); }else{ z=y; printf("z=%d\n",z); } return z; } |
int larger(int x, int y){ if(x>y){ return x; }else{ return y; } return 0; } |