codice:
c.value = parseInt(a.value) + parseInt(b.value);
Così dovrebbe andare.