View Code of Problem 84

#include <stdio.h>
#include <stdlib.h>

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main() {
	char salt[100];
	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);
						}
					}
				}
			}
		}
	}
	
	
    
}

Double click to view unformatted code.


Back to problem 84