Just learning and trying to store info.
I'm just playing around and i'm trying to store a batting average and continue to add to it by adding new at bats and hits. i'll put in my source code, but do not laugh.... I tryed and errored many things( more errors than anything). I did manage to " dim " a name$. so i'm getting close.
rem batting average
rem center text 25
rem RGB(255,255,0)1
set text to bolditalic
set text size 16
ink 5000,20
circle 300,250,100
x = 100
y = 100
rem text x,y, 100
rem return dword = RGB(255,0,255)
dim name$()
name$= Z$
print " what is your name?"
input Z$
rem print name$
do
wait 3000
cls
set text size 16
ink 5000,20
print z$
print " number of at bats"
dim battingavg()
battingavg = c#
input a#
print " number of hits"
input b#
c# = b# / a#
print " batting average"
set text size 35
print c#
print battingavg
set text size 16
if c# >= .220
print "welcome aboard,", Z
else
print "go back to the minors ,", Z$
endif
loop
wait key
philippians 4:13