Find the minimum of two integers in C

 #include <stdio.h>
 int min(int,int);
 int main()
    int a,b,c;
    printf("Enter two integers: ");
    printf("n%d is the minimum of %d and %d.n",c,a,b);
    return 0;
 int min(int a,int b)
    return (a<b)? a: b;
 End Program

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.