Advertisement
Guest User

Untitled

a guest
Aug 29th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3.  
  4. int main()
  5. {
  6. int i;
  7. char ch,lowest='z';
  8. printf("enter the key 10times.\n");
  9.  
  10.  
  11. for(i=0;i<10;i++)
  12. {
  13. ch=getchar();
  14. if(ch<lowest) lowest=ch;
  15.  
  16. }
  17.  
  18. printf("the lowest char is %c",lowest);
  19.  
  20.  
  21.  
  22. return 0;
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement