View Code of Problem 54

#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
int main()
{
    char s[1000];
    int len;
    int i;
    while(gets(s)){
    	if(s[0]==EOF)
    		break;
    	len = strlen(s);
		for(i=0;i<len;i++){
			printf("%c",s[i]);
			if(i==len-1)
				break;
			printf(" ");
		}	
		printf("\n");
    }
    return 0;
} 

Double click to view unformatted code.


Back to problem 54