Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<conio.h>
- #include<string.h>
- void main(){
- char s1[50];
- int i;
- clrscr();
- do{
- printf("\nNhap vao mot chuoi: ");
- gets(s1);
- }while(strlen(s1)<0||strlen(s1)>50);
- printf("\nChuoi vua nhap la:");
- puts(s1);
- fflush(stdin);
- //Kiem tra xem co ki tu in hoa ko
- if(strlwr(s1)!=s1){
- printf("\nChuoi s1 co ki tu in hoa");
- }
- else printf("\nChuoi s1 ko co ki tu in hoa");
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement