I´m trying to write an iterative algorithm recursive, but my code isn´t working. This is my iterative algorithm:
public long calculate(long n) { int var = 0; f