jituTechnology

jituTechnology

Any Character is entered through the keyboard, write a program to determine whether the character entered is capital letter, small letter, a digit or a special symbol using ASCII values and built-in functions

This is the c source code for: Any Character is entered through the keyboard, write a program to determine whether the character entered is capital letter, small letter, a digit or a special symbol using ASCII values and built-in functions

The Following table shows the range of ASCII values
Characters                          ASCII Values
A-Z                                         65-90
a-z                                          97-122
0-9                                         48-57
Special symbols               0-47, 48-64, 91-96,         123-127
/* a program to determine whether the character is capital or small */
#include <stdio.h>
#include <conio.h>
void main()
{
     char ch;
   int in;
   printf(“Enter the character: “);
   scanf(“%c”,&ch);
   in=ch;
   if (in>=65 && in<=90)
   {
     printf(“The character is capital”);
   }
     else if(in>=97 && in<=122)
     printf(“The character is small”);
     else if(in>=48 && in<=57)
     printf(“The enter value is number”);
     else if((in>=0 && in<=47) || (in>=48 && in<=64) || (in>=91 && in<=96) || (in>=123 && in<=127))
     printf(“The enter value is special symbol”);
   getch();
}
Add a comment

Comments (4)

  1. Polo CheapMarch 24, 2012 Reply
    I liked reading your publish. I’ve reached be honest was the very first content material in your website We truly liked as well as where I had a sense of understanding, know what I am talking about? Anyhow, maintain the posting as well as I will return once again.
  2. It is difficult to find knowledgeable people on this specific subject, however, you seem like you know very well what youre writing about! Many thanks
  3. Flora TheophilusApril 4, 2012 Reply
    A powerful share, I just given this onto a colleague who was doing slightly evaluation on this. And he in reality bought me breakfast as a result of I found it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to discuss this, I really feel strongly about it and love studying extra on this topic. If doable, as you develop into experience, would you mind updating your blog with more details? It is highly useful for me. Big thumb up for this weblog publish!
  4. canadian pharmacy hcg pelletsAugust 24, 2012 Reply
    This is very interestіng, You are a very skilled blogger.
    I have јoined your rss feed and loοk foгward
    to seеking mоre of your magnificent post. Also, I have shаred yоur site іn mу socіal networks!

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

September 2019
S M T W T F S
« Jun    
1234567
891011121314
15161718192021
22232425262728
2930