Basic by se asi mel spis porovnavat s Pythonem, nez s C. Napr. tento program v Basicu:
10 INPUT A 20 INPUT B 30 IF A>B THEN A=A-B:GOTO 30 40 IF A<B THEN B=B-A:GOTO 40 50 IF A<>B THEN 30 60 PRINT A,B
Vypada v Pythonu takto:
a = int(raw_input()) b = int(raw_input()) while a != b: while a > b: a -= b while b > a: b -= a print a, b
Cili stejny pocet radek.