'C' Code's to convert lowercase character to uppercase character.
C Program
#include < stdio.h > #include < conio.h > void main() { clrscr(); char str[25]; int i; printf("Enter any string: "); gets(str); for(i=0;str[i]!='\0';i++) { if(str[i]>='a' && str[i]<='z') { str[i]=str[i]-32; } } printf("%s",str); getch(); }
Input
harvindar singh
Output
HARVINDAR SINGH
0 Comments