Perl program - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Perl program

princesst45princesst45 Posts: 2Member
Write a program called tripper that will ask the user the number of miles he has driven and the amount of gas he used. In the tripper script, write a subroutine called mileage that will calculate and return the user's mileage (mpg). The number of miles driven and the amount of gas used will be passed as arguments. All variables should be my variables. Print the resuilts. Prototype tripper.
Sign In or Register to comment.