#include<iostream>
#include<stdio.h>
using namespace std;
int main()
{
char strOrig[100], strCopy[100], i=0;
cout<<"Enter the string: ";
gets(strOrig);
while(strOrig[i]!=' ')
{
strCopy[i] = strOrig[i];
i++;
}
strCopy[i] = ' ';
cout<<"
Entered String: "<<strOrig;
cout<<"
Copied String: "<<strCopy;
cout<<endl;
return 0;
}