Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP Path: utzoo!watmath!watdaisy!ndiamond From: ndiamond@watdaisy.UUCP (Norman Diamond) Newsgroups: net.lang Subject: Re: (qualityp BASIC) -> NIL Message-ID: <6995@watdaisy.UUCP> Date: Thu, 21-Feb-85 13:18:33 EST Article-I.D.: watdaisy.6995 Posted: Thu Feb 21 13:18:33 1985 Date-Received: Fri, 22-Feb-85 21:11:35 EST References: <7873@brl-tgr.ARPA> <706@ucbtopaz.CC.Berkeley.ARPA> <467@houxj.UUCP> <733@ucbtopaz.CC.Berkeley.ARPA> <791@diku.UUCP> Organization: U of Waterloo, Ontario Lines: 39 > i) 0010 LET A=10 > 0020 LET B=15 > 0030 PRINT 'Sum:'; A+B > > ii) PROGRAM sum (output); > VAR A,B : real; > BEGIN > A := 10.0; > B := 15.0; > writeln ("Sum: ", A+B) > END. > > iii) #include > #define A 10.0 > #define B 15.0 > main () > { > printf ("Sum: %f",A+B) > } > > Granted this is very simple programs, however they can demonstrate the ease > in which you can write a simple program in BASIC. > and neat. [To equal minded!] > -- > Kim Chr. Madsen Datalogisk Institut (Institute of Datalogy) And how many real-world programs are so simple-minded? As soon as you have two loops and one non-trivial exit condition, you'll prefer Pascal. As soon as you have two sizes of matrices (and require some function not built-in to Basic), you'll prefer C. -- Norman Diamond UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond CSNET: ndiamond%watdaisy@waterloo.csnet ARPA: ndiamond%watdaisy%waterloo.csnet@csnet-relay.arpa "Opinions are those of the keyboard, and do not reflect on me or higher-ups."