-3
I need to know the last term of the Fibonacci sequence, I’ve done it to show all the terms, but I need you to show me the last I’m using the Visualg
Algoritmo "Fibonacci"
Var
   v1, v2, v3, limite, cont: inteiro
Inicio
      escreval("Digite um limite:")
      leia(limite)
      v1 <- -1
      v2 <- 1
      cont <- 0
      
      enquanto cont< limite faca
            v3 <- v1 + v2
            v1<- v2
            v2 <- v3
            escreva(v3)
            cont <- cont+1
      fimenquanto
Fimalgoritmo