View Code of Problem 54

#include<iostream>
#include<malloc.h>
#include<algorithm>
#include<cstring>
using namespace std;

int main()
{
    char s[100];
    gets(s);
    for(int i=0; s[i]!='\0'; i++)
    {
        if(i==0)
            cout<<s[i];
        else
            cout<<" "<<s[i];
    }

    return 0;
}

Double click to view unformatted code.


Back to problem 54