Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- void main()
- {
- int a,b,c;
- printf("Enter 3 numbers ");
- scanf("%d%d%d",&a,&b,&c);
- if(a<b)
- {
- if(a<c)
- {
- printf("The smallest number is %d",a);
- }
- else
- {
- printf("The smallest number is %d",c);
- }
- }
- if(b<a)
- {
- if(b<c)
- {
- printf("The smallest number is %d",b);
- }
- else
- {
- printf("The smallest number is %d",c);
- }
- }
- }
Add Comment
Please, Sign In to add comment