ProAnswers.org

find greater btween two number and return it to a function in c language

#include

int main()

{

      int a,b,c;

      printf("enter first number");

      scanf("%d",&a);

      printf("enter second nuber");

       scanf("%d",&b);

     c= big(a,b);

    printf("big number is %d",c);

}

big(int a,int b)

{

       if(a>b)

      {

     return a;

      }

     else

     {

      return b;

      }

}