View Code of Problem 77

#include <stdio.h>
#include <string.h>
int main()
{
	char a[10];
	int i,n;
	gets(a);
	n=strlen(a);
	for(i=0;i<n;i++)
	{
		if (i<n-1)
		{
			printf("%c ",a[i]);
		}
		else printf("%c",a[i]);
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 77