Sunday, 14 December 2014

C PROGRAM TO CONVERT A SINGLE LOWERCASE CHAR INTO UPPERCASE

Write a program to convert a single lowercase character into uppercase character.

#include<stdio.h>
#include<conio.h>
int main()
{
char a, b;
clrscr();
printf("enter a single character in lowercase\n");
a=getchar();
b=toupper(a);
putchar(b);
getch();
return(0);
}

OUTPUT:
Enter a single character in lowercase
h

H

No comments:

Post a Comment