Aptitude Question: Download Questions PDF
If G(0) = -1 G(1)= 1 and G(N)=G(N-1) - G(N-2) then what is the value of G(6)?
Answer:
ans: -1
bcoz g(2)=g(1)-g(0)=1+1=2
g(3)=1
g(4)=-1
g(5)=-2
g(6)=-1
bcoz g(2)=g(1)-g(0)=1+1=2
g(3)=1
g(4)=-1
g(5)=-2
g(6)=-1
Download Aptitude Interview Questions And Answers
PDF