for (node *tmp=list; tmp!=NULL; tmp=tmp->next)
{
printf("%i\n", tmp->number);
}
source: harvard cs50, david malan