Highligiting Vowels In C Programming Tamil


#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
   int n,i;
   char *a;
   clrscr();
   printf("\nEnter the string :");
   gets(a);
   n=strlen(a);
   for(i=0;i<n;i++)
   {
      if(a[i]=='a'||a[i]=='e'||a[i]=='i'||a[i]=='o'||a[i]=='u')
      {
	 textcolor(RED);
	 cprintf("%c",a[i]);
      }
      else
      {
	 printf("%c",a[i]);
      }
   }
   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