#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i;
int d;
d=42; // ascii OF *
char a[5],b[5];
printf(" Enter the 5 letter PASSWORD\n ");
printf(" pASSWORD ::: ");
for(i=0;i<5;i++)
{ a[i]=getch();
b[i]=d;
printf("%c",b[i]);
}
if(a[0]=='L' && a[1]=='O' && a[2]=='V' && a[3]=='E' && a[4]=='U' )
printf(" \n <<<<<<<...........Welcome...........>>>>>>>> ");
else
printf(" \n !.........Sorry!Incorrect password.........! ");
}
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
for login......
Password : LOVEU
No comments:
Post a Comment