View Code of Problem 54

#include "stdio.h"
#include "string.h"

void main()
{
	char s[100];
	int i;
	gets(s);
	for(i=0;s[i]!='\0';i++)
	{
		if(s[i+1]=='\0')
			printf("%c",s[i]);
		else
			printf("%c ",s[i]);
	}
}

Double click to view unformatted code.


Back to problem 54