I'm trying to understand why this outputs 200 because I would think that each time is adds 2+ (w-1) each time until w = 0 - wouldn't the output be much larger? Thanks!
int w = 100;
public static int mystery(int w)
{
if (w<=0) {
return 0;
}
return 2+ mystery(w-1);
}