0
Check whether a character is vowel or consonant using switch case ?
when a user enters a character and click on submit, it should say the character is vowel or consonant. eg : a is vowel.
6 Respuestas
0
here is my code :
<?php
switch($vowel)
{
case 'a': echo "vowel";break;
case 'e': echo "vowel";break
case 'i': echo "vowel";break
case 'o': echo "vowel";break
case 'u': echo "vowel";break
default: echo " this letter is consonant.";
}
?>
is it correct ?
0
Thank you Lexus Collins. Very much !!!
0
One more thing, i want to improve my logic/problem solving skills in javascript. Do you know where can i improve ? I am very poor.