Problem: Write a program that reads a file containing an unknown number of integers and displays the
percentage of the integers in the file that are zero, the percentage that are negative and the percentage
that are greater than zero.
This code isn't entirely finished. I'm just doing some verification. But for some reason, my counters aren't working properly and I'm not exactly sure why. The input file currently contains:
12
22
-8
0
-5
-6
4
0
But I'm only getting a total number of 4, only 1 positive, 1 negative, and 2 zeroes in my output file. What can I do in order to fix that?