Check Smallest Number In C


#include<stdio.h> int main(){ int k,b,c; printf("\n Enter Three Numbers for k,b & c : "); scanf("%d %d %d", &k ,&b ,&c); if (k<b && k<c) { printf("\n k Is smallest Number : %d",k); } else if(b<c) { printf("\n b Is smallest Number : %d",b); } else { printf("\n c Is smallest Number : %d",c); } return 0; }

Output:-

Enter Three Numbers for k,b & c : 133 200 33 c Is smallest Number : 33