Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void main()
- {
- int small,i,a;
- scanf("%d",&a);
- small=a;
- for (i=1;i<=9;i++)
- {
- scanf("%d",&a);
- if (small>a)
- small=a;
- }
- printf("Smallest number is: %d",small);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement