Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int i;
- char ch,lowest='z';
- printf("enter the key 10times.\n");
- for(i=0;i<10;i++)
- {
- ch=getchar();
- if(ch<lowest) lowest=ch;
- }
- printf("the lowest char is %c",lowest);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement