Monday, October 4, 2010

Nth term

a= int(rand*10)
b= int(rand*10)
for n = 1 to 4
  print a*n + b
next n
input "What is the nth term?", x$
Print a+"n+"+b

No comments:

Post a Comment