This commit is contained in:
Oleksandr Vyshniakov 2025-09-24 21:29:17 +02:00
parent 9a800e5d18
commit f4a8423b5b
3 changed files with 53 additions and 0 deletions

Binary file not shown.

Binary file not shown.

53
du1/program.c Normal file
View File

@ -0,0 +1,53 @@
#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;
}