Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Cool user name maker - C Code Bank


Cool user name maker
type a plane text user name and you will get cool chars and number combined user name ex: hack -> H4CK
                /**
*@title :Cool Username Maker
*@author :Tharindra Galahena
*@version 1.00 2010/12/5
*/


#include <stdio.h>
#include <string.h>

char *name;

main(){
	char s[50];
	printf("Enter a Name(Don't use Spaces) :\n");
	scanf("%s",s);
	name = s;
	printf("\nUser Name is: \n\n===>");
	int i;
	char a;
	while(*name !='\0'){
		if(*name >96 && *name < 123) a = (char)(*name -32);
		else a = (char)*name;
		if(a == 'A')putc('4',stdout);
		else if(a == 'E')putc('3',stdout);
		else if(a == 'I')putc('1',stdout);
		else if(a == 'O')putc('0',stdout);
		else if(a == 'T')putc('7',stdout);
		else if(a == 'G')putc('9',stdout);
		else putc(a,stdout);
		
		name++;
	}
	printf("\n");
}

            
Comments
zarzar555's avatar
zarzar555 10 years ago

Gabriel