#include <stdio.h>
int main( ) {
char op = ' ' ;
char letra = ' ' ;
do {
\n 1) Digite uma letra\
\n 2) Mostre a letra\
\n Op: ") ;
switch ( op) {
case '0' :
break ;
case '1' :
break ;
case '2' :
printf ( "\n Letra digitada: %c" , letra
) ; break ;
default :
}
} while ( op != '0' ) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGNoYXIgb3AgPSAnICc7CiAgICBjaGFyIGxldHJhID0gJyAnOwogICAgZG8gewogICAgICAgIHByaW50ZigiXG4wKSBTYWlyXAogICAgICAgICAgICBcbjEpIERpZ2l0ZSB1bWEgbGV0cmFcCiAgICAgICAgICAgIFxuMikgTW9zdHJlIGEgbGV0cmFcCiAgICAgICAgICAgIFxuT3A6ICIpOwogICAgICAgIHNjYW5mKCIgJWMiLCAmb3ApOwoKICAgICAgICBzd2l0Y2ggKG9wKSB7CiAgICAgICAgICAgIGNhc2UgJzAnOgogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIGNhc2UgJzEnOgogICAgICAgICAgICAJcHJpbnRmKCJcbkxldHJhOiAiKTsKICAgICAgICAgICAgCXNjYW5mKCIgJWMiLCAmbGV0cmEpOwogICAgICAgICAgICAJYnJlYWs7CiAgICAgICAgICAgIGNhc2UgJzInOgogICAgICAgICAgICAJcHJpbnRmKCJcbkxldHJhIGRpZ2l0YWRhOiAlYyIsIGxldHJhKTsKICAgICAgICAgICAgCWJyZWFrOwogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgcHJpbnRmKCJcbk9wY2FvIGludmFsaWRhLiIpOwogICAgICAgIH0KICAgIH0gd2hpbGUgKG9wICE9ICcwJyk7CiAgICBwcmludGYoImZpbSIpOwogICAgcmV0dXJuIDA7Cn0=