View Code of Problem 54

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

Double click to view unformatted code.


Back to problem 54