C program to covert uppercase string into lowecase.

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
  clrscr();
  char str[20];
  int i;
  printf("Enter the String in Uppercase : ");
  scanf("%s",str);
  for(i=0;i<=strlen(str);i++)
  {
     if(str[i]>=65 && str[i]<=92)
     {
  str[i]=str[i]+32;
     }
  }
  printf("\nThe Lowercase String = %s",str);
  getch();
}
C program to covert uppercase string into lowecase. C program to covert uppercase string into lowecase. Reviewed by on December 26, 2019 Rating: 5

No comments:

Powered by Blogger.