/* Programm for enter password from user
Programming Language c
*/
#include<stdio.h>
void main()
{
char pass[100],ch;
int i=0,j;
clrscr();
printf("\n\n\tENTER YOUR PASSWORD\n\t");
do
{
ch=getch();
if(ch!=0x0d)
{
pass[i]=ch;
printf("*");
i++;
}
} while(ch!=0x0d);
getch();
printf("\n");
printf("\n\n\n\tYOUR PASSWORD\n\t");
for(j=0;j<i;j++)
{
printf("%c",pass[j]);
}
getch();
}
Programming Language c
*/
#include<stdio.h>
void main()
{
char pass[100],ch;
int i=0,j;
clrscr();
printf("\n\n\tENTER YOUR PASSWORD\n\t");
do
{
ch=getch();
if(ch!=0x0d)
{
pass[i]=ch;
printf("*");
i++;
}
} while(ch!=0x0d);
getch();
printf("\n");
printf("\n\n\n\tYOUR PASSWORD\n\t");
for(j=0;j<i;j++)
{
printf("%c",pass[j]);
}
getch();
}
No comments:
Post a Comment