ASSIGNMENT 3
10 sys("command.com/c cls")
20 print "what year of highschool are you in"
30 input num1
31 IF (num1) < 4 then goto 151
32 IF (num1) > 1 then goto 151
40 IF (num1) = 1 then goto 80
50 IF (num1) = 2 then goto 100
60 IF (num1) = 3 then goto 120
70 IF (num1) = 4 then goto 140
80 print "your a freshman,nerd!"
90 goto 160
100 print "2 more years to go your a sophmore"
110 goto 160
120 print "your a junior 1 more year"
130 goto 160
140 print "your a senior, so leave!!!"
150 goto 160
151 print "your house has just exploded because you decided to be dumb"
152 goto 160
160 end
ASSIGNMENT 4
10 sys("command.com/c cls")
20 print "what year of highschool are you in"
30 input num1
40 IF (num1) = 1 then goto 80
50 IF (num1) = 2 then goto 100
60 IF (num1) = 3 then goto 120
70 IF (num1) = 4 then goto 140
80 print "your a freshman,nerd!"
90 goto 160
100 print "2 more years to go your a sophmore"
110 goto 160
120 print "your a junior 1 more year"
130 goto 160
140 print "your a senior, so leave!!!"
150 goto 160
160 end
Thursday, June 11, 2009
Wednesday, June 10, 2009
Basic IF
the commputer runs the program and it checks if the statement that is given is true then it says true and vice versa.
this can be used to plug in numbers into a big formula or to do mass calculations
10 sys("command.com/c cls")
20 print "pick a number between 40 and 80"
30 input num1
60 IF (num1) = 69 then goto 90
70 print "wow go get a life you suck"
80 goto 100
90 print "win"
100 end
this can be used to plug in numbers into a big formula or to do mass calculations
10 sys("command.com/c cls")
20 print "pick a number between 40 and 80"
30 input num1
60 IF (num1) = 69 then goto 90
70 print "wow go get a life you suck"
80 goto 100
90 print "win"
100 end
Tuesday, May 12, 2009
Subscribe to:
Comments (Atom)
