by Dinesh Thakur Category: C Programming (Pratical)

 

#include <stdio.h>

void main( )
{
    char line [80] ;
    int  count ; /* read i n the e n t i r e s t r i n g */
    printf ("Enter  a  line  of  text  below:\n");
    scanf ( "%s\ n",line ) ;
    for (count = 0; line[count] != '\0' ; ++count)
    {
            if (((line[count] >= '0')&& (line[count] < '9')) || ((line[count] >= 'A') && (line[count] <'Z' ) ) || ((line[count] >= 'a') && (line[count] < 'z')))
              putchar(line[count] + 1);
       else if (line[count] == '9' ) putchar('0');
       else if (line[count] == 'Z' ) putchar('A');
       else if (line[count] == 'z' ) putchar('a');
       else putchar('.');
    }

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.



Search Content