View Code of Problem 54

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

Double click to view unformatted code.


Back to problem 54