#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();
}
#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