Computer Science, asked by sayalidoshi315, 18 days ago

write a program to convert uppercase characters of a string in lowercase.​

Answers

Answered by juwairiyahimran18
5

C Program To Convert Uppercase String To Lowercase

int main()

{

char s[1000];

int i;

printf("Enter the string : ");

gets(s);

for(i=0;s[i];i++)

{

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

s[i]+=32;

}

printf("string in lowercase ='%s'\n",s);

return 0;

}

Output:

1

2

Enter the string: HELLO

string in lowercase ='hello'

hopefully its helped u dear :)

Similar questions