- Joined
- May 19, 2009
- Messages
- 8,428
- Reaction score
- 295
- Points
- 83
- Location
- Waiting for a mate . . .
- Your Mac's Specs
- 21" iMac 2.9Ghz 16GB RAM - 10.11.3, iPhone6s & iPad Air 2 - iOS 9.2.1, ATV 4Th Gen tvOS, ATV3
Can anyone tell me if it can be done and what app i would need to run this code, considering if its even possible Cheers
Written in BASIC
I am NOT a programmer but i found a old book and it bought back memories from my Commodore 64 days .... I think lol
Anything would help... Thanks
Written in BASIC
I am NOT a programmer but i found a old book and it bought back memories from my Commodore 64 days .... I think lol
Code:
10 PRINT "ALIENS SQUARE ALONG"
20 INPUT A
30 PRINT "ALIENS SQUARE UP"
40 INPUT B
50 CLS
60 PRINT "COMMANDO'S SQUARE ALONG"
70 INPUT C
80 PRINT "COMMANDO'S SQUARE UP"
90 INPUT D
100 CLS
110 LET X=SQR((A-C)*(A-C)+(B-D)*(B-D))
120 PRINT "YOU ARE NOW"
130 PRINT X;"SPACE UNITS APART""
140 IF X<1.5 THEN PRINT "ALIEN FOUND"
150 IF X<1.5 THEN STOP
155 PRINT "WHAT ARE THERE NEW POSITIONS"
160 GOTO 10
170 END
Anything would help... Thanks