View Code of Problem 54

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

Double click to view unformatted code.


Back to problem 54