Tuesday, July 14, 2015

Vowels program in Java Script

<html xmlns="http://w3.org/1999/xhtml">
<head>
<script>
window.alert("Vowels PROGRAM");
var n=window.prompt("Enter alphabet :","");
document.write("<h1>VOWEL Program</h1><br>");
switch(n)
{
case "a":
case "e":
case "i":
case "o":
case "u":
document.write("<h2>It is a vowel.....</h2>");
break;
default:
document.write("<h2>It is not a vowel.....</h2>");
break;
}
</script>
</head>
<body>
</body>
</html>

No comments:

Post a Comment