Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- int main(int argc, char *argv[])
- {
- int n, min;
- printf("Enter number..\n");
- scanf("%d", &n);
- min = n % 10;
- while(n /= 10)
- if(n % 10 < min)
- min = n % 10;
- printf("\n%d\n", min);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement