By DePaul Dimadis
Choose your prefered Language: greek_flag uk_flag

Write a program in C language that will enter into two unidirectional N-series pairs (N = unknown), let M, P correspond to the month number M (acceptable values ​​1-12) and to a production quantity P produced in the month M (P> 0 and P >> N). For each month there are more than one and unknown to a number of price pairs. The data is entered in random order, ie no data are entered in order of month 1 after month 2 etc. Find the month of the year starting from the beginning of the year the total production exceeds a given value X.