hi,
This program is to find lsmallest no between the given three no.
suppose the given no are a, b and c.
Code:#include <stdio.h> #include <conio.h> main() { int p,q,r,smaller; printf("Enter Three numbers"); scanf("%d%d%d",&p,&q,&r); if(p<q) if(p<r) smaller=p; else smaller=r; else if(q<r) smaller=q; else smaller=r; printf("The smallest no between given three no is of %d,%d and %d = %d",p,q,r,smaller); return 0; }
Bookmarks