I am trying to write an algorithm to determine the average of a linked list of real numbers with the first node pointed to by first...
ptr = first;
while (ptr != null_value)
{
//not sure what to put in here
}
Can someone take a look of this short algorithm and help me to determine to finish this off as I have never really worked with this before?