Weekly Qbasic and Qb64 Lesson Topics
October 12, 2024, 05:00:27 pm
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Want to see a specific Tutorial? ASK!
 
  Home Help Search Arcade Links Staff List Login Register  

MATH PROGRAMS

Pages: [1]
  Print  
Author Topic: MATH PROGRAMS  (Read 2688 times)
GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« 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 
Like wise, anyone that has samples or demos, of various math programs, is welcome to post them in this thread, but please include some explanation, as to how they work, so others can learn from them.
From Garry
Report Spam   Logged

Share on Facebook Share on Twitter

GarrisonRicketson
Admin
Administrator
Hero Member
*****
Posts: 583



WWW
« Reply #1 on: April 23, 2012, 07:59:27 am »

These are links for some additional information.
WIKI,Mathmatical Functions
And
  SQR math functions (Square Root) 
Report Spam   Logged


Pages: [1]
  Print  
 
Jump to:  

Powered by EzPortal
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy