Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- #include<stdlib.h>
- #include<ctype.h>
- //Made by the disgraceful CS student from USC.
- int main(void)
- {
- int x, y=0, z;
- char jeje[100];
- printf("WELCOME TO JEJEFIER ENTER YOUR PHRASE.\n");
- gets(jeje);
- for(x=0;jeje[x]!='\0';x++){
- switch(jeje[x]){
- case 'a': jeje[x]='4'; break;
- case 'l': jeje[x]='7'; break;
- case 's': jeje[x]= '5'; break;
- case 'o': jeje[x]= '0'; break;
- case 't': jeje[x]= '+'; break;
- case 'i': jeje[x]= '1'; break;
- case 'e': jeje[x]= '3'; break;
- case 'g': jeje[x]= '6'; break;
- }
- if(isdigit(jeje[x])==0){
- if(isupper(jeje[x])==0){
- if(y==1){
- jeje[x] = toupper(jeje[x]);
- y = 0;
- }
- else{
- y = 1;
- }
- }
- }
- }
- for(x=0, z=1;jeje[x]!='\0';){
- int randnumber = rand() % 2;
- if(randnumber == 1 && z==1){
- memmove(&jeje[x+1], &jeje[x], sizeof(char) + (strlen(jeje)-x));
- x=x+2;
- }
- else{
- if(z==1){
- z=0;
- }
- x++;
- }
- }
- puts(jeje);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement