#include <stdio.h>
int main( int argc, char * argv[ ] ) {
char texto[ 30 ] , result; int i = 0 ;
printf ( "Pressione A B C para 2" ) ; printf ( "\n Pressione D E F para 3" ) ; printf ( "\n Pressione G H I para 4" ) ; printf ( "\n Pressione J K L para 5" ) ; printf ( "\n Pressione M N O para 6" ) ; printf ( "\n Pressione P Q R S para 7" ) ; printf ( "\n Pressione T U V para 8" ) ; printf ( "\n Pressione W X Y Z para 9" ) ; printf ( "\n \n Informe as letras: " ) ; while ( texto[ i] != '\0 ' ) {
result
= tolower ( texto
[ i
] ) > 96 && tolower ( texto
[ i
] ) < 122 ? ( char ) ( ( 20 - tolower ( texto
[ i
] ) / 122 ) + ( 5 * tolower ( texto
[ i
] ) / 16 ) ) : texto
[ i
] ; i++;
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pIHsKCiAgICBjaGFyIHRleHRvWzMwXSwgcmVzdWx0OyBpbnQgaSA9IDA7CiAgICBwcmludGYoIlByZXNzaW9uZSBBIEIgQyBwYXJhIDIiKTsKICAgIHByaW50ZigiXG5QcmVzc2lvbmUgRCBFIEYgcGFyYSAzIik7CiAgICBwcmludGYoIlxuUHJlc3Npb25lIEcgSCBJIHBhcmEgNCIpOwogICAgcHJpbnRmKCJcblByZXNzaW9uZSBKIEsgTCBwYXJhIDUiKTsKICAgIHByaW50ZigiXG5QcmVzc2lvbmUgTSBOIE8gcGFyYSA2Iik7CiAgICBwcmludGYoIlxuUHJlc3Npb25lIFAgUSBSIFMgcGFyYSA3Iik7CiAgICBwcmludGYoIlxuUHJlc3Npb25lIFQgVSBWIHBhcmEgOCIpOwogICAgcHJpbnRmKCJcblByZXNzaW9uZSBXIFggWSBaIHBhcmEgOSIpOwogICAgcHJpbnRmKCJcblxuSW5mb3JtZSBhcyBsZXRyYXM6ICIpOwogICAgc2NhbmYoIiVzIiwgdGV4dG8pOwogICAgd2hpbGUgKHRleHRvW2ldICE9ICdcMCcpewogICAJCXJlc3VsdCA9IHRvbG93ZXIodGV4dG9baV0pID4gOTYgJiYgdG9sb3dlcih0ZXh0b1tpXSkgPCAxMjIgPyAgKGNoYXIpKCgyMCAtIHRvbG93ZXIodGV4dG9baV0pIC8gMTIyKSArICg1ICogdG9sb3dlcih0ZXh0b1tpXSkgLyAxNikpIDogdGV4dG9baV07CiAgIAkJcHJpbnRmKCIlYyIsIHJlc3VsdCk7CiAgICAJaSsrOwoJfQoKfQ==