' GASCASH.BAS
' This program uses a FOR loop to track weekly gasoline expenses.

CLS

PRINT "For each of the seven days of the week, enter the amount ";
PRINT "you spent on gasoline."
PRINT

FOR day% = 1 TO 7
    PRINT "  Cash spent on day"; day%;
    INPUT "-->  $", dayTotal!
    weekTotal! = weekTotal! + dayTotal!
NEXT day%

PRINT
PRINT "Wow!  $"; weekTotal!; "on gas in one week!"

