Write a program that read two line of text & copy second line into first line.

#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<iostream.h>

void main()
{
    char st1[100],st2[100];

    clrscr();
    cout<<"Enter first line of text : ";
    gets(st1);
    cout<<"Enter second line of text : ";
    gets(st2);
   
    strcpy(st1,st2);
    cout<<"\nAfter copy the string :\n";
    cout<<"First line of text : "<<st1<<"\n";
    cout<<"Second line of text : "<<st2;

    getch();
}

///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........