View Code of Problem 54

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

Double click to view unformatted code.


Back to problem 54