# include”stdio.h”
# include”conio.h”
# include”string.h”

void main(void)
{
clrscr();
int k,k2=0;
char pass[]=”password”,pas[9],*we=”\b”;
for(k=0;k<=8;k++)
{
pas[k]=getch();
if (pas[k]!=*we && k<8)
{
printf(“*”);
}
if (pas[k]==*we)
{
clrscr();
k-=2;
for (int k5=0;k5<k+1;k5++)
printf(“*”);
}
}
for (int k1=0;k1<=8;k1++)
{
if (pass[k1]==pas[k1])
{
k2++;
}
}
if(k2==8)
{
printf(“HELLLO WORLD”);
}
printf(“BYE BYE”);
getch();

}

Advertisements