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

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

void main()
{
    char st[100];

    clrscr();
    printf("Enter line of text : ");
    gets(st);
   
    strupr(st);
    printf("\nIn upper case : %s",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>

void main()
{
    char st[100];

    clrscr();
    printf("Enter line of text : ");
    gets(st);
   
    strlwr(st);
    printf("\nIn lower case : %s",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>

void main()
{
    char st1[100],st2[100];
    int n;
    clrscr();
    printf("Enter first line of text : ");
    gets(st1);
    printf("Enter second line of text : ");
    gets(st2);
   
    n=strcmpi(st1,st2);
    printf("\nWithout sensitivity Comparing the two string : %d",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>

void main()
{
    char st1[100],st2[100];
    int n;
    clrscr();
    printf("Enter first line of text : ");
    gets(st1);
    printf("Enter second line of text : ");
    gets(st2);
   
    n=strcmp(st1,st2);
    printf("\nComparing the two string : %d",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>

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

    clrscr();
    printf("Enter first line of text : ");
    gets(st1);
    printf("Enter second line of text : ");
    gets(st2);
   
    strcat(st1,st2);
    printf("\nAfter add the string :\n");
    printf("First line of text : %s\n",st1);
    printf("Second line of text : %s",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>

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

    clrscr();
    printf("Enter first line of text : ");
    gets(st1);
    printf("Enter second line of text : ");
    gets(st2);
   
    strcpy(st1,st2);
    printf("\nAfter copy the string :\n");
    printf("First line of text : %s\n",st1);
    printf("Second line of text : %s",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>

void main()
{
    char st[100];
    int i, l;

    clrscr();
    printf("Enter any line of text : ");
    gets(st);
   
    l=strlen(st);
    printf("Reverse of the String = ");
    for(i=l-1;i>=0;i--)
    printf("%c",st[i]);

    getch();
}

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