Given a string. In the line, replace the semicolon with a colon.
There is a code:
# include <stdio.h> void main () { char s [30], sl [30]; int i,n = 0, k = 0; printf ("vvedite stroku: "); gets (s); for (i=0; i<strlen(s); i++){ if (s[i]==';'); } getch(); }
What do I need to add to be replaced by a colon?