C Programming Tutorial

 
 
 
 

Image

#include <stdio.h>
#include <conio.h>
#include <ctype.h>

void main(){
     char ch;
     clrscr();
     while(1){
    printf(\"\\nEnter ZERO to Terminate \\n\");
    printf(\"Enter any character : \");
    scanf(\"%c\",&ch);
    if(ch==\'0\')
       break;
    else if(isspace(ch))
         printf(\"\\nCharacter is a Space\\n\");
    else if(isdigit(ch))
         printf(\"\\nCharacter is a Digit\\n\");
    else if(isalpha(ch))
         printf(\"\\nCharacter is a Alphabet and it\'s uppercase is %c\\n\",toupper(ch));
    else if(isalnum(ch))
         printf(\"\\nCharacter is a Alphanumeric\\n\");
    else
         printf(\"\\nCharacter is a %c\\n\",ch);
    getch();
      }
}[/Code]

    Related Post:
  1. Program to compute x to the power n using while loop

  2. Program to display the name of the day, depending upon the number entered from the keybord using the switch case Loop

  3. Program to overcome the forward dependency using block scheduling using the most equitable distribution of work

  4. Program to calculate area of rectangle and circle

  5. PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES. INPUT STEPS FROM KEYBOARD. 1 + 2 + 6 + 24 + 120 + ......

  6. Program to find process id and parent process id

  7. Program to find volume of sphere

  8. Doublely link list with create, insert, delete and display operations using structure pointer

  9. Use of subscripted members in structures , ARRAYS WITHIN A STRUCTURE

  10. PROGRAM THAT WILL PRINT YOUR MAILING ADDRESS IN THE FOLLOWING FORM: FIRSTLINE:- NAME, SECOND LINE:-DOOR NO. STREET, THIRD LINE:-PIN CODE

  11. Program to print the address of a variable along with its value

  12. Program to maintain a heap

  13. PROGRAM TO FIND VALUE OF V USING V = P(1 + R)^N

  14. Program that takes characters from user in an array and prints them with their ASCII values.(Do not use atoi function)

  15. Example 1 of using functions

  16. Program to concatenate of two strings without using strcat function

  17. Program that takes a number from user and calculates its logarithm value to the base 10 and e, exponentiation, sin value, cosine value and square root

  18. Program to find least common multiple and greatest common factor of 2 numbers

  19. Program to inter change to number in each other

  20. Program to get and set System Date using Interrupt 21h

 
 
Didn't find what you were looking for? Find more on Program to display entered character in capital letter