This program take user name and password from the use but the password not display on screen insted of password ***** display
Program by Meghdoot(meghs)
Login Program
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
int i=0,temp=0,x;
char pass[100];
char user[]="meghdoot",password[]="meghs007";
clrscr();
printf("\n Enter User Name=");
gets(user);
printf("\n Enter Password=");
while(temp!=13)
{
pass[i]=getch();
temp=pass[i];
i++;
printf("*");
}
pass[i]=NULL;
if((x=strcmp(password,pass))==0)
{
printf("\n Login Successful");
}
else
{
printf("\n User name or passord Wrong");
}
prinft("\n Program By Meghdoot ");
getch();
}
MosaicFuneral 812 Nearly a Posting Virtuoso
saroj_timsina 0 Newbie Poster
William Hemsworth 1,339 Posting Virtuoso
tux4life 2,072 Postaholic
burnt-ice09 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.