Friday, 15 June 2018

Program to convert lower case character into upper without use of library function in C

/* lower to upper */
# include <stdio.h>
void lower -to- upper (char) ;
void main () ;
{
char ch ;
clrscr () ;
printf ("\n Enter a lower case character:") ;
scanf ("%d", & ch) ;
lower to upper (ch) ;
getch () ;
}
Void lower to upper (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...