Program 332: Find First Small Letter in String
//Coming Soon...
Output:
#include<stdio.h> #include<string.h> main() { int i,flag=0; char str[100]; printf("Enter String to get First Small Letter of String\n"); gets(str); for(i=0;i<strlen(str);i++) { if(str[i]>'a' && str[i]<'z') { printf("The First Small Letter is %c\n",str[i]); flag=1; break; } } if(flag!=1) printf("There is no small letter\n"); }Explanation:
Output:
No comments:
Post a comment