Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Working with switch case



Test expression



Header file



Specifer



Iterative statement




String_ convert all character from UPPERCASE to lowercase




// AHF C PROGRAM SOLVING

//solving here 2_D   ARRAY 	programming problem

#include #define pf printf int main() { char str[10000]; int i; pf("Enter the upper string: "); gets(str); pf("\nThe string was in upper case and the lower case is: \n\n"); for(i=0;str[i]!='\0';i++) { if(str[i]>='A' && str[i]<='Z') pf("%c",str[i]+32); //converting uppercase to lowercase else pf("%c",str[i]); //if given lowercase print lowercase } return 0; }
OUTPUT:


© 2018 - All rights reserved