Write a c program to convert the string from upper case to lower case.

 #include<stdio.h>

#include<string.h>

int main(){

  

   char str[25];

   int i;

   printf("Enter the string: ");

   scanf("%s",str);

 

   for(i=0;i<=strlen(str);i++){

      if(str[i]>=65&&str[i]<=90)

         str[i]=str[i]+32;

   }

   printf("\nLower Case String is: %s",str);

   return 0;

}

No comments:

Post a Comment

Programming in C Language

  PROGRAM LIST TO BECOME PRO IN C    😍😍😍            PRACTICE SETS                                                        UNIT -1  👇   IN...