Problem :- Write a program which will take Any input of character input while giving input it will show asterisk (*) instead of the character .
Solution :-
Output:-
Solution :-
#include<stdio.h>
#include<conio.h>
main()
{
char ch[]="**********.";
char c='A';
int i=0,j;
printf("Write Your Name \n\n");
while(c)
{
c=getch();
printf("%c\a",ch[i]);
i++;
if(i==10)
{
printf(" ");
i=0;
}
}
}
Output:-
I did not get it this code..
ReplyDeleteCan you give me explanation
explain this code
ReplyDelete