#include <ctype.h>
#include <string.h>
#include <stdio.h>
int main( void )
{
char s[ 256 ];
char *p;
printf( "Enter 'bye' to power-off the EV3 brick: " );
scanf( "%4s", s );
for ( p = s; *p; p++ ) *p = tolower( *p );
if ( strcmp( s, "bye" ) == 0 ) {
printf( "Goodbye!\n" );
} else {
printf( "Misspelling.\n" );
}
return ( 0 );
}