Skip to content

Instantly share code, notes, and snippets.

/programmingfaster Secret

Created Feb 16, 2018
Embed
What would you like to do?
programmingfaster
#include<conio.h>
#include<string.h>
int main()
{
int i=0,j;
char str[100];
printf("Enter a string:");
gets(str);
while(i<strlen(str))
{
if(str[i]==32)
{
for(j=i;j<strlen(str);j++)str[j]=str[j+1];
}
if(str[i]=='.')str[i]=':';
i++;
}
puts(str);
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.