error "awk: (FILENAME=- FNR=23) fatal: division by zero attempted"

Hi ,

I have file :

after i run this command :

there are error

can we print blank line if output error ??

thanks.. ^^

i don't see where you have a third or fourth column.

oops sorry should be like this :

skin the useless cat.

awk '$1!=0 || $2!=0{print $1" ,"100*($1/($1+$2))" ,"}' file

yap thanks.. but we should print $1
so we missing $1 in line 23 and 24 ??

can we print blank line for this case ?