View Code of Problem 54

#include <stdio.h>
#include <stdlib.h>
#define N 100
int main() {
char ch[N];
int i;
int len;
scanf("%s",&ch);
len=strlen(ch);
for(i=0;i<len;i++){
    if(i<(len-1))
       printf("%c ",ch[i]);
    else
        printf("%c",ch[i]);
}

	return 0;
}


Double click to view unformatted code.


Back to problem 54