Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Reading and writing of alphabets in reverse case

Posted By: Helga Miller     Category: C Programming     Views: 5499

Reading and writing of alphabets in reverse case.

Code for Reading and writing of alphabets in reverse case in C Programming

#include <stdio.h>                                          
   #include <ctype.h>                                          
                                                               
   main()                                                      
   {                                                           
       char alphabet;                                          
       printf("Enter an alphabet");                            
       putchar('\n');   /* move to next line */
alphabet = getchar(); if (islower(alphabet)) putchar(toupper(alphabet)); else putchar(tolower(alphabet)); } Output Enter an alphabet a A Enter an alphabet Q q Enter an alphabet z Z
  
Share: 


Didn't find what you were looking for? Find more on Reading and writing of alphabets in reverse case Or get search suggestion and latest updates.

Helga Miller
Helga Miller author of Reading and writing of alphabets in reverse case is from Frankfurt, Germany.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!