akshay.chugh
09-30-2012, 10:08 PM
<html><head>
<title>a</title>
<script text="javascript/text">
document.write("the fibanic series is as follows" )
var i;
for (i=0; i<6; i++){ document.write(i);
value=i;
a(value);
}
function a(value){if(value===0){
document.write("1");}
if(value===1){
docuument.write("1");}
else
document.write(a(value-1)+a(value-2));}
</script>
</head>
<body></body>
</html>
i used the below written code but the the result that is coming is :
the fibanic series is as follows00
<title>a</title>
<script text="javascript/text">
document.write("the fibanic series is as follows" )
var i;
for (i=0; i<6; i++){ document.write(i);
value=i;
a(value);
}
function a(value){if(value===0){
document.write("1");}
if(value===1){
docuument.write("1");}
else
document.write(a(value-1)+a(value-2));}
</script>
</head>
<body></body>
</html>
i used the below written code but the the result that is coming is :
the fibanic series is as follows00