So I got a task, I have to make a program with SmallBASIC.
I'm not talking about Microsoft smallbasic, I'm talking about this
So, my task is:
a) Write a program which draws 10 x- direction lines and 10 y- direction lines (coordinates)
(hint line 20,20,200,200 draws a line in coordinates 20,20 -> 200,200)
make a for- loop
b) change the program that it asks the amount of lines and if user inserts less than 1 or more than 100 the program gives a error message
This is what I've got so far:
input "How many lines?", amount
if amount<1 OR amount>100
print "Invalid amount. Insert amount between 1 and 100."
for a=1 to amount
line 50, 50, 200, 200
So could someone make this work? I've used a week trying to figure this out.. normally it takes 15minutes maxium.. I'm out of ideas and tries..
Appreciate every effort put into this.