Saturday, 16 June 2018

Program to convert a upper case character into lower case character using function in C

/* upper to lower */
# include <stdio.h>
void upper-to-lower (char) ;
void main ()
{
char ch ;
printf ("\n Enter a upper case character:") ;
scanf ("%d", & ch) ;
upper-to-lower (ch) ;
getch () ;
}
void upper-to-lower (char ch)
{
ch = ch+32 ;
printf ("%c", ch) ;
}

No comments:

Post a Comment

Featured post

Program to find Volume of given box in java

class volume { public static void main (String args []) { int l=5,b=6,h=10; int volume; volume=l*b*h; System.out.println (" vol...