View Code of Problem 54

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

Double click to view unformatted code.


Back to problem 54