Advertisement
Josif_tepe

Untitled

Jun 10th, 2021
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. int main(){
  2.  
  3. int n;
  4. scanf("%d",&n);
  5. char niza[100];
  6.  
  7. for(int i=0;i<n;i++){
  8.     scanf("%s",niza);
  9.     int brojac=0;
  10.     for(int j=0;j<strlen(niza);j++){
  11.  
  12.         if(niza[j]=='A' && niza[j+1]=='1' && niza[j+2]=='c'){
  13.         brojac++;
  14.  
  15.  
  16.         }
  17.  
  18.     }
  19.      if(brojac>=2){
  20.         for(int j=0;j<strlen(niza);j++){
  21.             niza[j]=tolower(niza[j]);
  22.         }
  23.         printf("%s\n",niza);
  24.      }
  25.  
  26. }
  27.  
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement