#include<stdio.h> #include<string.h> void main() { char a[1000]; int l; while (gets(a) != NULL) { l=strlen(a); for (int i = 0; i<l; i++) { if (a[i] == 'S' || a[i] == 's') { if (a[i+1] == 'A' || a[i+1] == 'a') { if (a[i + 2] == 'L' || a[i + 2] == 'l') { if (a[i + 3] == 'T' || a[i + 3] == 't') { printf("%s\n", a); break; } } } } } } } |
Double click to view unformatted code.