[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include(/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php) [function.include]: failed to open stream: No such file or directory
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 122: include() [function.include]: Failed opening '/home/shoeb/public_html/www.matholympiad.org.bd/forum/includes/phpbb-latex.php' for inclusion (include_path='.:/opt/php53/lib/php')
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4786: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4788: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4789: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4790: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
BdMO Online Forum • View topic - Finding Vowel,Consonant and Other

Finding Vowel,Consonant and Other

Discuss Computer Science and Programming related problems

Moderators: bristy1588, Labib

Facebook Twitter

Finding Vowel,Consonant and Other

Post Number:#1  Unread postby rakeen » Mon Nov 12, 2012 12:25 pm

Write a program that will take a character from user and will print if it is vowel,consonant or 'other'(i.e 1,3,null). Use switch case And if-else.
r@k€€/|/
User avatar
rakeen
 
Posts: 384
Joined: Thu Dec 09, 2010 5:21 pm
Location: Dhaka

Re: Finding Vowel,Consonant and Other

Post Number:#2  Unread postby leonardo shawon » Sun Jan 13, 2013 12:34 am

IN JAVA: how about using the ASCII value of all the vowels. rest are consonants. and those which are not string will be declared as others.
Ibtehaz Shawon
BRAC University.

long way to go .....
User avatar
leonardo shawon
 
Posts: 169
Joined: Sat Jan 01, 2011 4:59 pm
Location: Dhaka

Re: Finding Vowel,Consonant and Other

Post Number:#3  Unread postby Phlembac Adib Hasan » Sun Jan 13, 2013 1:47 pm

The same technique can be used in C/C++. But if you want something 'complex' create an array of vowels. Now compare user's input letter with these. This technique can be used in any programming language that supports variables and if...else statement. (Like C/C++, Java, JavaScript, php, Python, Ruby...)
Welcome to BdMO Online Forum. Check out Forum Guides & Rules: viewtopic.php?f=25&t=6
User avatar
Phlembac Adib Hasan
 
Posts: 1012
Joined: Tue Nov 22, 2011 7:49 pm
Location: 127.0.0.1


Share with your friends: Facebook Twitter

  • Similar topics
    Replies
    Views
    Author

Return to Computer Science

Who is online

Users browsing this forum: No registered users and 1 guest

cron