how to can make in uppar case to lowercpp

0 votes
asked Feb 11, 2018 by anonymous
HELLO to hello

1 Answer

0 votes
answered Feb 11, 2018 by anonymous
#include<stdio.h>
#include<string.h>
void main()
{
  char str[20];
  int i;
  printf("Enter the String (Enter First Name) 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 String in Lowercase = %s",str);
}

Courtesy: link

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...