入2 個數, 只出大的那個.
___________________________-
#include
int max_2_ints(int, int);
int
main (int argc, char **argv) {
int a, b, larger;
printf(" Enter two nubmers:\\n");
scanf(" %d%d", &a, &b);
larger = max_2_ints(x,y);
return 0;
}
______________________
/* MY FUNCTION */
int
max_2_ints(int x, int y){
int larger;
larger =x;
if( y>x)
larger = y;
return larger;
}
________________________________
唔明佢點解唔work.
請解釋, THANKS.