#include<stdio.h> #include<string.h> int main() { char salt[1000]; int i; while(gets(salt)) { for(i=0; i<strlen(salt); i++) { if(salt[i] == 'S' || salt[i] == 's') { if(salt[i+1] == 'A' || salt[i+1] == 'a') { if(salt[i+2] == 'L' || salt[i+2] == 'l') { if(salt[i+3] == 'T' || salt[i+3] == 't') { puts(salt); } } } } } } return 0; } |
Double click to view unformatted code.