Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main(){
- int n;
- scanf("%d",&n);
- char niza[100];
- for(int i=0;i<n;i++){
- scanf("%s",niza);
- int brojac=0;
- for(int j=0;j<strlen(niza);j++){
- if(niza[j]=='A' && niza[j+1]=='1' && niza[j+2]=='c'){
- brojac++;
- }
- }
- if(brojac>=2){
- for(int j=0;j<strlen(niza);j++){
- niza[j]=tolower(niza[j]);
- }
- printf("%s\n",niza);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement