1#include <stdio.h>
2#include <string.h>
3
4int main() {
5 char s[100];
6 int i;
7
8 printf("\nEnter a string : ");
9 gets(s);
10
11 for (i = 0; s[i]!='\0'; i++) {
12 if(s[i] >= 'A' && s[i] <= 'Z') {
13 s[i] = s[i] + 32;
14 }
15 }
16
17 printf("\nString in Lower Case = %s", s);
18 return 0;
19}