|
Answer» How do I write code to MULTIPLY 66 by 27 in DOS?DOS is an operating system not designed for PROGRAMMING. If you mean how do you do mathematics in a .bat file, it's not really possible using the available batch file commands.Dear Dusty,
Thank you very much for getting back to me.
Basically, here's my situation.
I'm working on a project that TAKES place in 1986. We have a scene where a computer is computing multiplications.
What programs were available to do that? How would it look?
I remember writing programs in DOS around that time, but can't remember how to write the code.
Thanks,
MikolayPerhaps you mean a DOS based programming language such as Basic, Assembler, Cobol etc...
Basic is a good high level programming language to start with, the commands are in English (or as near as can be), such things as PRINT (to display on the monitor) and LPRINT (to print to an actual printer). The code for multiplication could be RESULT = 65 * 54 (* is the Basic sign for multiplication).
The question of maths in DOS comes up regularly but I have never been able to find a site where maths in a .bat file is possible. However please browse in the site below for more info & I'm sure someone more knowledgeable than I am will post a comment:
http://www.robvanderwoude.com/index.html
Good luckThanks for your help.Quote How do I write code to multiply 66 by 27 in DOS?
Use a calculator. It would be much quicker.
By the way the answer is 1782.
|