I need to print the fuel consumption and mileage of the car in SAS code. if given that mileage is 20 miles per gallon.
It should stop generating output if fuel reaches to 10 gallon OR car travel 250 miles.
do while (fuel<11);
miles = fuel*20;
The output for fuel needs to be started from 1 for first 20 miles which incorrect in my code. Any suggestion on what I am missing here.