Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: SmallBASIC problem
08-27-2013, 11:09 AM #1
- Join Date
- Aug 2013
- Thanked 0 Times in 0 Posts
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 one..
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." endif for a=1 to amount line 50, 50, 200, 200 next pause
Appreciate every effort put into this.