DESCRIPTION:This program makes use of the keyword continue to delete the appropriate character present in the string or the text.
The continue statement passes control to the next iteration of the nearest enclosing do, for, or while statement in which it appears, bypassing any remaining statements in the do, for, or while statement body.
PROGRAM:
main()
{
char a[50],b[50],i,j,ch;
printf("Enter the string\n");
gets(a);
printf("Enter the character to be deleted\n");
scanf("%c",&ch);
for(i=0,j=0;a[i]!='\0';i++)
{
if(a[i]==ch)
continue;
b[j]=a[i];
j++;
}
b[j]='\0';
puts(b);
}
OUTPUT WINDOW: