Unless BASIC has drastically changed in the 50 years since I first learned it,
don't you need line numbers anymore?
My version would have said:
1 let J=0
2 print J
3 let J=J+1
4 if j<=10 goto 2
5 end
Either way , the output would be
0
1
2
3
...
9
10
Question:
Where do they still teach BASIC?
How is it used on a PC or a Mac ?
I have a simulator for GW-BASIC that runs on a
Windows-based desktop. Is that how it used in
your school?
write the output of the segment of the program below
let J=0
print J
let J=J+1
if j<=10 goto 2
end
2 answers
just an introduction to computer programming in my school for beginner like me