I need to read values from input file (can be both positive and negetive) and add them and write the sum in output file.The sum can be negetive. Kindly help me with the declerations of the following variables so that I can get negetive values also as output.
1. Variable to read the input value
2.Variable to hold the sum
3.Variable which will write in the output file.