Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2018 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/78dbceedc8a4d05a390767d51e0d407d to your computer and use it in GitHub Desktop.
Save anonymous/78dbceedc8a4d05a390767d51e0d407d to your computer and use it in GitHub Desktop.
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