for(n = 40; n < 50; n++ )
{
...........
}
Type: Posts; User: GoodbyeWorld
for(n = 40; n < 50; n++ )
{
...........
}
F(n) = F(n-1) + F(n-2);
F(0) = 0;
F(1) = 1;
At which value of n?
add a throws clause (throws InputMismatchException) to your two methods (rfib and memorized).