Toggle Case in C Program Tamil


#include<stdio.h>
#include<conio.h>
void main()
{
   int i,n;
   char *a;
   clrscr();
   printf("\nEnter the string:");
   gets(a);
   n=strlen(a);
   for(i=0;i<n;i++)
   {
       if(a[i]>=65&&a[i]<=90)
       {
	   a[i]=a[i]+32;
       }
       else if(a[i]>=97&&a[i]<=122)
       {
	   a[i]=a[i]-32;
       }
   }
   puts(a);
   getch();
}

Login To Download Source Code

Leave a Comment:

Login To Comment

List Of Programs


Goto Examples

Operators

Looping

Number Conversion

Pattern Design

Arrays

Matrix Examples

Sorting Examples

String Function

Change Case

String In C

Maths Functions

User Defined Functions

Recursive Functions

Pointer

Structure

File Concept

Calender Programming