/* */ Click to Join Live Class with Shankar sir Call 9798158723
Q.) WAP to find Lower case letter to Upper case letter using functions With C program.
    #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;
}
Output
Enter a case in lower char : a
The upper case char is = A

Enter a case in lower char f
The upper case char is = F