Pages

Friday, October 5, 2012

A program that read any lower case character and display in upper case


 # A program that read any lower case character and display in upper case

 

       1.  #include<stdio.h>
2.  #include<conio.h>
3.  
4.  void main()
5.  {
6.     char n;
7.  
8.     clrscr();
9.     printf("Enter any lower case character: ");
10.    scanf("%c",&n);
11. 
12.    printf("%c",n-32);
13.    getch();
14. }



No comments:

Post a Comment