View Code of Problem 54

#include<bits/stdc++.h>
using namespace std;

int main()
{
    char s[1000+10];
    gets(s);
    int len = strlen(s);
    for(int i=0;i<len-1;i++)
        cout<<s[i]<<" ";
    cout<<s[len-1]<<endl;

    return 0;
}

Double click to view unformatted code.


Back to problem 54