View Code of Problem 54

#include <stdio.h>
int main()
{
	char s[100];
	gets(s);
	int i;
	for(i=0;s[i]!='\0';i++)
	{ 
		if(s[i+1]=='\0')
			printf("%c",s[i]);
		else
			printf("%c ", s[i]);
	}
	return 0;
} 

Double click to view unformatted code.


Back to problem 54