Well I'm in class now so the teacher is answering the stuff that's confusing me, and yah the PHP is very nice 
Like we had to write a program that asks a user to input how many miles they drove, and how much gas they used. It would then calculate their MPG. Then it asked them the same question, and the user could repeat it as much as they want. After the user types -1, it calculates their average MPG. It was easy to continually ask for miles travelled, gas used, and spit out an MPG, trying to type code for tallying all the MPGs together and calculating the average was pretty tricky though.
Anyone good with RNG programs? I need to write a program that lists a bunch of random numbers between 1 and 50 depending on what number the user inputs. zzzzzzzzzz, I can't figure out how to friggen start the RNG

Like we had to write a program that asks a user to input how many miles they drove, and how much gas they used. It would then calculate their MPG. Then it asked them the same question, and the user could repeat it as much as they want. After the user types -1, it calculates their average MPG. It was easy to continually ask for miles travelled, gas used, and spit out an MPG, trying to type code for tallying all the MPGs together and calculating the average was pretty tricky though.
Anyone good with RNG programs? I need to write a program that lists a bunch of random numbers between 1 and 50 depending on what number the user inputs. zzzzzzzzzz, I can't figure out how to friggen start the RNG

