Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
|
|
@ -2,25 +2,25 @@
|
|||
|
||||
int main()
|
||||
{
|
||||
char ch, str[100];
|
||||
int i;
|
||||
|
||||
do{
|
||||
printf("\nEnter the string :");
|
||||
fgets(str,100,stdin);
|
||||
for(i=0;str[i]!=00;i++)
|
||||
{
|
||||
if(str[i]=='#'||str[i]==';')
|
||||
{
|
||||
str[i]=00;
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\nThe modified string is : %s",str);
|
||||
printf("\nDo you want to repeat (y/n): ");
|
||||
scanf("%c",&ch);
|
||||
fflush(stdin);
|
||||
}while(ch=='y'||ch=='Y');
|
||||
|
||||
return 0;
|
||||
char ch, str[100];
|
||||
int i;
|
||||
|
||||
do{
|
||||
printf("\nEnter the string :");
|
||||
fgets(str,100,stdin);
|
||||
for(i=0;str[i]!=00;i++)
|
||||
{
|
||||
if(str[i]=='#'||str[i]==';')
|
||||
{
|
||||
str[i]=00;
|
||||
break;
|
||||
}
|
||||
}
|
||||
printf("\nThe modified string is : %s",str);
|
||||
printf("\nDo you want to repeat (y/n): ");
|
||||
scanf("%c",&ch);
|
||||
fflush(stdin);
|
||||
}while(ch=='y'||ch=='Y');
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue