My C code is able to iterate once through and come up with the correct mileage but on the second iteration it fails
The problems objective is to write a program that takes a number of data sets the user would like to enter and then within the data sets it counts how many miles you traveled. For example for the first sample input 20 mph for the first 2 hours, 30 for 2nd – 6th hour and 10 for the seventh hour. The input sequence is the n number of data sets and the the s (speed/mph) and t(time). -1 ends the sequence