and the only reason i put
inside the if statement, was to specifically debug the formula. If i chuck the above inside where the formula is the last element is skipped that is why it does not equal 183.Code:printf("\n%f %f\n", start->numberone, start->numbertwo);
Code:printf("\n%f %f\n", start->numberone, start->numbertwo);
Yep. You suggested that i put the numberone and numbertwo print outs out of the if statement, which worked but start->next != NULL stops the formula from getting the last element in the linked list.
There wouldnt be anything there anyway.