C Program to change all alphabets to lower case









UPPER CASE,Sumit Kar, Timus Rak,  lower case





#include <stdio.h>





void main()



{



 char str[100];



 int i;



 printf("Enter a string: ");







 fgets(str, 100, stdin);









 for(i=0;str[i]!=NULL;i++)



 {



  if(str[i]>='A'&&str[i]<='Z')



   str[i]+=32;



 }





 printf("String in lower case is: %s",str);





}











Comments

Popular posts from this blog

Write a Program to Add two 3x3 Matrix using C

C program for Unit Conversion

Write a Program to Add two 5x5 Matrix using C