: PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT
#1

Code:
Algorithm:-
         begin
         if  a,e,I,o,u      or   A,E,I,O,U
         then
         printf “It is a vowel”
         else
         printf “It is a consonant”
         end

1.    LEX program to count number of vowels and consonants in a given input string

%%
[aeiouAEIOU] {printf(“it is vowel”);}
[a-zA-Z] {printf(“it is consonant”);}
%%
main()
{
yylex();
}
int yywrap()
{
return 1;
}


Output:

$./a.out
a
it is a vowel
g
it is a consonant
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: java program 1 silver blooms is a hostel in scholar s hub university campus under graduate students of university is given ac, lex program for identify identifier in c, matlab program to compute n point dft of a given n point sequence, identify project ideas pdf, count no of vowels in a string using scilab, how to identify ied power point**plication module, how to identify hindi fontand functions,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Messages In This Thread
: PROGRAM TO IDENTIFY VOWELS AND CONSONANTS GIVEN AS INPUT - by smart paper boy - 10-08-2011, 11:44 AM

Possibly Related Threads...
Thread Author Replies Views Last Post
  VHDL program for Booth’s Multiplier smart paper boy 2 5,655 20-04-2013, 11:59 AM
Last Post: T
  Program in “LEX” to count number of vowels and consonants seminar class 2 9,629 22-03-2013, 10:20 AM
Last Post: computer topic
  Program in “LEX” to count number of Identifiers and Keywords seminar class 1 4,850 28-01-2013, 03:21 PM
Last Post: Guest
  To predict Exons in the given nucleotide sequence using the HMM gene tool. smart paper boy 0 1,239 10-08-2011, 02:50 PM
Last Post: smart paper boy
  To predict Open Reading Frames (ORFs) in the given nucleotide sequence using the ORF smart paper boy 0 1,418 10-08-2011, 02:49 PM
Last Post: smart paper boy
  To predict the genes in the given nucleotide sequence using the GenScan tool. smart paper boy 0 1,189 10-08-2011, 02:46 PM
Last Post: smart paper boy
  To perform multiple sequence alignment between the given sequences using Clustalw2 to smart paper boy 0 1,393 10-08-2011, 02:44 PM
Last Post: smart paper boy
  To perform global alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,351 10-08-2011, 02:43 PM
Last Post: smart paper boy
  To perform local alignment between the given sequences using EMBOSS tool. smart paper boy 0 1,285 10-08-2011, 02:41 PM
Last Post: smart paper boy
  PROGRAM TO RECOGNIZE A STRING WITH THREE COSECUTIVE 0’s smart paper boy 0 1,666 10-08-2011, 11:44 AM
Last Post: smart paper boy

Forum Jump: