while(current != NULL){
if(current->coef != 0)
printf("%dx%d+",current->coef,current->pow);
current = current->next;
}
Ok, the blue sections are your code and won't...
Type: Posts; User: Cooloorful
while(current != NULL){
if(current->coef != 0)
printf("%dx%d+",current->coef,current->pow);
current = current->next;
}
Ok, the blue sections are your code and won't...
Why not just write out your values like this?
while(current != NULL){
if(current->coef != 0)
printf("%dx%d+",current->coef,current->pow);
current = current->next;
...