sandeep kaur
unread,Oct 28, 2011, 10:44:25 AM10/28/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cse2...@googlegroups.com
yeah divya me and swapna asked mam she told to prepare these 32 extra she gave in last internal plus all are lab programs ... and installations and bean box is not there in tomorrows lab girls ... all the best
and ans for my second question of internal lab :
no is fibnocii or not
<html>
<head>
<script type="text/javascript">
function valid()
{
var n=document.s.x.value;
var i=0,a=0,b=1,c;
while(i<n)
{
c=a+b;
document.write(c+" ");
if(n==c)
{
n=1;
}
a=b;
b=c;
i++;
}
if(n==1)
{
document.write("fibnocii");
}
else
document.write("not fibnocii");
}
</script>
</head>
<body>
<form name="s">
no. that is to be checked whether it is fibnocii or not:
<input type="text" name="x"/>
<br>
<input type="submit" name="submit" value="submit" onclick="valid();">
</input>
</form>
</body>
</html>