refresh
This commit is contained in:
parent
9a800e5d18
commit
f4a8423b5b
Binary file not shown.
BIN
du1/program
BIN
du1/program
Binary file not shown.
53
du1/program.c
Normal file
53
du1/program.c
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user