compute the nth mumber in the fibonacci sequence?

Answer Posted / sharma v

Can anyone tell why it is going in an infinite loop

dim a, b, c
a=0
b=1
c=a+b
print a
print b
n=InputBox( "Enter a number")
while c<=m
print c
a=b
b=c
c=a+b
wend

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain enumerated types in c language?

608


What is typedef?

681


What is meant by int main ()?

722


What are the primitive data types in c?

579


How is = symbol different from == symbol in c programming?

618






What is the difference between #include

and #include “header file”?

557


How can you determine the size of an allocated portion of memory?

748


What is register variable in c language?

609


How do you print an address?

752


PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

1718


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1806


How can you increase the allowable number of simultaneously open files?

599


Explain 'far' and 'near' pointers in c.

710


What is malloc() function?

639


Why we use void main in c?

599