#include<stdio.h>
void main() {
int i;
char id[10], pw[10], ch;
printf("Enter a username: ");
gets(id);
printf("Enter a password: ");
for (i = 0; i<8; i++)
{
ch = _getch();
pw[i] = ch;
ch = '*';
printf("%c", ch);
}
printf("\nYour password is :");
for (i = 0; i<8; i++)
{
printf("%c", pw[i]);
}
getchar();
getchar();
getchar();
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.