<html>
<body>
<script type="text/vbscript">
dim j,l,s
j=inputbox("Enter any string")
l=len(j)
s=instr(j,"a")
if (l<4) then
document.write(j &" is not having the size 4!!!!!Try again with string having size 4"&"<br>")
elseif (l>=4) and (s)then
document.write(j &" is having the size " &l&"<br>")
document.write(" a is available in the given string"&"<br>")
else
document.write(j &" is having the size " &l&"<br>")
document.write(" a is not available in the given position"&i&"<br>")
end if
</script>
</body>
</html>
<body>
<script type="text/vbscript">
dim j,l,s
j=inputbox("Enter any string")
l=len(j)
s=instr(j,"a")
if (l<4) then
document.write(j &" is not having the size 4!!!!!Try again with string having size 4"&"<br>")
elseif (l>=4) and (s)then
document.write(j &" is having the size " &l&"<br>")
document.write(" a is available in the given string"&"<br>")
else
document.write(j &" is having the size " &l&"<br>")
document.write(" a is not available in the given position"&i&"<br>")
end if
</script>
</body>
</html>
No comments:
Post a Comment