Title: MATH PROGRAMS Post by: GarrisonRicketson on April 22, 2012, 09:00:31 pm Both qbasic and qb64 are great for math programs, in fact QB64 and qbasic,can be used to solve basic math problems , simply using the PRINT command,..without the " ",
Quote Use the print command, PRINT , followed by the number and the symbol, add + subtract - or divide / and * is to multiply, for more complex, and other math formulas, I am not sure,.. Code: PRINT "4 X 4=" PRINT 4 * 4 PRINT "6 diveded by 3 = " PRINT 6 / 3 PRINT " 7 + 2=" PRINT 7 + 2 PRINT " Nine minus five equals " PRINT 9 - 5 '/// or just by itself, PRINT 25 - 20 For more complex, and other math formulas, I am not sure, however in the next few days, this week, I will see what more I can find. Quote Here is one for a calculator, right here on the fourm. Just follow this link, or paste it into your browser http://weeklyqbasicandqb64lesson.smfforfree.com/index.php/topic,328.msg1574.html#msg1574 From Garry Title: Re: MATH PROGRAMS Post by: GarrisonRicketson on April 23, 2012, 07:59:27 am These are links for some additional information. WIKI,Mathmatical Functions (http://qb64.net/wiki/index.php?title=Keyword_Reference_-_By_usage#Mathematical_Functions_and_Operations:) And SQR math functions (Square Root) (http://qb64.net/wiki/index.php?title=SQR) |