How to add input with ajax

i want to add two input and how to show the result in a three fields

Why dont you show us how far did you reach? We do not know anything about your application, so answer a question like this is nearly impossible.

i am building a payment form y i need tomultiply tho input and show the
result in a third with ajax