char diffchar = 'I'; main() { char inchar; int nbcharin, flag; if ( (nbcharin = scanf("%c", &inchar)) != 1 ) printf("Satisfaisant.\n"); if ( nbcharin == 1 ) { ('A' <= inchar && inchar <= 'Z') ? (inchar += 32) : 0 ; if ( ( flag = (inchar > 'd' && inchar < 'f') || (inchar > 'n' && inchar < 'p') || (inchar > 't' && inchar < 'v') || (inchar > 'x' && inchar < 'z') || (inchar == diffchar) ) ) printf("'%c' pas si satisfaisant.\n", inchar); if ( ! flag ) { diffchar = (inchar != 'i') ? (('a' != inchar) ? diffchar : inchar) : 'i'; main(); } } }
Nicolas Graner, février 1999, Licence Art Libre