-
"A Simple code on fb Password in C language"
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
char a[10],k;
int l,x,i=0,n;
printf("password is=");
while(i<10)
{
a[i]=getch();
clrscr();
printf("password");
for(n=0; n<=i; n++)
{
printf("*");
}
i++;
}
printf("do you want to see your password y or n");
k=getch();
if(k=='y')
{
clrscr();
printf("your password is=") ;
for(l=0; l<i; l++)
{
printf("%c",a[l]);
}
}
getch();
}