C program to print a given string in lower case.
C Program
#include <stdio.h> #include <conio.h> void main() { char s[100]; int len,i; clrscr(); printf("\nENTER A SENTENSE: "); gets(s); len=strlen(s); printf("\n"); for(i=0;i<len;i++) { if(s[i]>=65 && s[i]<=90) printf("%c",s[i]+32); else printf("%c",s[i]); } getch(); }