Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<conio.h>
  3. #include<string.h>
  4.  
  5. void main(){
  6. char s1[50];
  7. int i;
  8. clrscr();
  9. do{
  10. printf("\nNhap vao mot chuoi: ");
  11. gets(s1);
  12. }while(strlen(s1)<0||strlen(s1)>50);
  13. printf("\nChuoi vua nhap la:");
  14. puts(s1);
  15. fflush(stdin);
  16. //Kiem tra xem co ki tu in hoa ko
  17. if(strlwr(s1)!=s1){
  18. printf("\nChuoi s1 co ki tu in hoa");
  19. }
  20. else printf("\nChuoi s1 ko co ki tu in hoa");
  21. 
  22. getch();
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement