View Code of Problem 84

#include <stdio.h>
#include <string.h>
int main() {
	char a[100]={};
	int i=0,j=0;
	while(scanf("%[^\n]",a)!=EOF)
	{
	    getchar();
		int len=strlen(a);
		for(j=0;j<len;j++)
		{
			if((a[j]=='s'||a[j]=='S')&&(a[j+1]=='a'||a[j+1]=='A')&&(a[j+2]=='l'||a[j+2]=='L')&&(a[j+3]=='t'||a[j+3]=='T'))
			{	
				puts(a);
				break;
				
			}
		}	
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 84