BASIC was developed in 1963 at Dartmouth School in Hanover, New Hampshire as a teaching language. One trick on this programming questions is by utilizing HashMap or Hashtable , we can store number as key and its incidence as worth, if number is already present in Hashtable then increment its value or insert value as 1 and later on print all these numbers whose values are more than one.
On this sense Okay&Okay’s specs have been superior and however it assumed that implementors might easily program garbage-collection into their BASIC interpreters; I fugure that the majority variants failed to do that as a result of when you will have little or no reminiscence, please, do not let us do rubbish collection from a small bin.
One funny historic word about GE/Honeywell FUNDAMENTAL on later early 70’s machines – We in EDA thought the guy supporting BASIC was considered one of more subtle software guys…until we found he was doing his FUNDAMENTAL compiler/interpreter code enhancing utilizing CARD Decks!!
Second-era BASICs (for instance, VAX Primary , SuperBASIC , True PRIMARY , QuickBASIC , BBC PRIMARY , Pick FUNDAMENTAL and PowerBASIC ) introduced numerous features into the language, primarily associated to structured and procedure-oriented programming.
On the time, almost all use of computers required writing customized software, which was something solely scientists and mathematicians tended to do. The language and its variants grew to become widespread on microcomputers within the late 1970s and Eighties, when it was typically a typical function, and infrequently really built into the firmware of the machine.