View Code of Problem 84

#include <stdio.h>
int main()
{
	int i;
	char s[100];
	while (gets(s) != NULL)
	{
		for (i = 0; i < strlen(s); i++)
		{
			if (s[i] == 'S' || s[i] == 's') 
				if (s[i + 1] == 'A' || s[i + 1] == 'a')
					if (s[i + 2] == 'L' || s[i + 2] == 'l')
						if (s[i + 3] == 'T' || s[i + 3] == 't')
						{
							puts(s);
							break;
						}
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 84