Write a program that read a line of text & display in upper case.

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

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

    clrscr();
    cout<<"Enter line of text : ";
    gets(st);
   
    strcupr(st);
    cout<<"\nIn upper case : "<<st;

    getch();
}

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

Write a program that read a line of text & display in lower case.

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

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

    clrscr();
    cout<<"Enter line of text : ";
    gets(st);
   
    strclwr(st);
    cout<<"\nIn lower case : "<<st;

    getch();
}

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

Write a program that compares two strings without case sensitivity.

#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);
   
    int n=strcmpi(st1,st2);
    cout<<"\nWithout sensitivity Comparing the two string : "<<n;

    getch();
}

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

Write a program that compares two strings.

#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);
   
    int n=strcmp(st1,st2);
    cout<<"\nComparing the two string : "<<n;

    getch();
}

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

Write a program that read two line of text & add second line with 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);
   
    strcat(st1,st2);
    cout<<"\nAfter add 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.........

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.........

Write a program that read a line of text & display it’s in reverse order.

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

void main()
{
    char st[100];

    clrscr();
    cout<<"Enter any line of text : ";
    gets(st);
   
    int l=strlen(st);
    cout<<"Reverse of the String = ";
    for(int i=l-1;i>=0;i--)
    cout<<st[i];

    getch();
}

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