#include < stdio.h> char lower_to_upper_case(char str1) { char str2; if(str1 >='a' && str1<='z'){ str2='A'+str1-'a'; }else{str2=str1;} return str2; } int main() { char lower_str,upper_str; printf("Enter a case in lower char "); scanf("%c",&lower_str); upper_str=lower_to_upper_case(lower_str); printf("The upper case char is = %c ",upper_str); return 0; }