Hello friends!!!!!
To print string in lowercase
C LANGUAGE
11/23/20241 min read
// To print all the string in Lowercase
#include <stdio.h>
#include<ctype.h>
#include<string.h>
int main() {
char a[50] = "RISHENDRA";
printf("Original string is %s\n", a);
for(int i = 0 ; i < strlen(a) ; i++){
a[i] = tolower(a[i]);
}
printf("Lowercase string is %s", a);
}
Output:
Original string is RISHENDRA
Lowercase string is rishendra
=== Code Execution Successful ===