Write a program to convert a string into lower to upper case and upper to lower case of string in C Language
Program to convert a string into lower to upper case and upper to lower case string in C Language
#include <stdio.h>
#include <string.h>
int main()
{
char string1[100], string2[100];
printf("\nEnter the upper case string = ");
gets(string1);
printf("\nYour result = \"%s\"\n",strlwr(string1));
printf("\nEnter the lower case string = ");
gets(string2);
printf("\nYour result = \"%s\"\n",strupr(string1));
return 0;
Comments
Post a Comment