Thursday 16 April 2015

program hidden password

#include<stdio.h>
#include<conio.h>
void main()
{
char arr[10];
int i;
clrscr();
printf("\n enter your password:");
for(i=0;i<5;i++)
{
arr[i]=getch();
      // printf("*"); try without this//
}
printf("\n your password is ");
for(i=0;i<5;i++)
{
printf("%c",arr[i]);
}
getch();
}

No comments:

Post a Comment