int function ( int arg0 ) { int loc0 = 1 ; int loc1 = 1 ; int loc2 = 1 ; for ( int loc3 = 2 ; loc3 <= arg0 ; loc3 ++ ) { loc2 = loc0 + loc1 ; loc0 = loc1 ; loc1 = loc2 ; } return loc2 ; }
dp version where we do not recalculate values but just keep last 2 calculate values concode_field_sep PlaceHolder placeHolder concode_field_sep int fibonacciSeriesRecursive concode_elem_sep void main