Q:

C Program For Convert All Input String Simultaneously Into Asterisk ( * )

belongs to collection: Array C Programs List

0

 Write a program which will take Any input of character input while giving input it will show asterisk (*) instead of the character .

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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:

Write Your Name 

**********  *********** *********** ********** *******

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

<< C Program to Check String is a Palindrome or Not...