53 lines
897 B
C
53 lines
897 B
C
#include <stdio.h>
|
|
#include <ctype.h>
|
|
#define LINESIZE 100
|
|
|
|
void deshifr (char *text) {
|
|
for (int i = 0; text[i] != '\0'; i++) {
|
|
switch (text[i]) {
|
|
case '0':
|
|
text[i] = 'o';
|
|
break;
|
|
case '1':
|
|
text[i] = 'i';
|
|
break;
|
|
case '2':
|
|
text[i] = 'z';
|
|
break;
|
|
case '3':
|
|
text[i] = 'e';
|
|
break;
|
|
case '4':
|
|
text[i] = 'a';
|
|
break;
|
|
case '5':
|
|
text[i] = 's';
|
|
break;
|
|
case '6':
|
|
text[i] = 'b';
|
|
break;
|
|
case '7':
|
|
text[i] = 't';
|
|
break;
|
|
case '8':
|
|
text[i] = 'b';
|
|
break;
|
|
case '9':
|
|
text[i] = 'q';
|
|
break;
|
|
}
|
|
text[i] = tolower(text[i]);
|
|
}
|
|
}
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
struct pizza {
|
|
float prize;
|
|
char name[LINESIZE];
|
|
};
|
|
|
|
return 0;
|
|
} |