#include<stdio.h> #include<stdlib.h> void main() { int a, b, c; printf("Enter a number of a :") ; scanf("%d", & a) ; printf("Enter a number of b : ") ; scanf(" %d", & b) ; printf(" Enter a number of C :") ; scanf("%d", & c) ; if(a<b) { if(a<c) { printf("A is smaller ") ; } else { printf(" C is smaller ") ; } } else { if(b<c) { printf(" B is smaller ") ; } else { printf(" C is smaller ") ; } } } |
Enter a number of a :3 Enter a number of b :2 Enter a number of c :1 C is smaller