Fandom

Petit Computer Wiki

Gas Prices

915pages on
this wiki
Add New Page
Comments2 Share
 PRG:GASPRICE

This program finds the cost of any amount of gallons of gasoline or the gallons proportion of how much you pay. Confused? Just download it and find out! This game is great for beginners.

The Code

Don't have the QR code so here's the coding. Sorry.

ACLS

COLOR 9:BEEP 7:PRINT"GAS PRICES"

PRINT"AS OF MARCH 2013":WAIT 120

GOTO @KLOOP

@LOOP

BEEP 7

@KLOOP

COLOR 7:INPUT"Gallons or money";A$

BEEP 7:INPUT"Enter amount(no $ sign)";NO1

IF A$=="GALLONS" THEN GOTO @G

IF A$=="MONEY" THEN GOTO @M

@G

CLS

PRINT""NO1" gallons equals"

PRINT"$"MON" dollars"

GOTO @LOOP

@M

GAL=NO1/3.71

CLS

PRINT"$"NO1" equals"

PRINT""GAL" gallons"

GOTO @LOOP

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.