Joe Walls Posted May 12, 2009 Report Posted May 12, 2009 How would I make a factorial calculator using1 textbox(txtInput)1 fixed textbox(txtOutcome)1 button(cmdCalculate) I'm not sure how I code the but I know this will make a multiply function.(if I made a secon textbox) txtOutcome.text = txtInput1.text * txtInput2.text That's pretty much what I know bout calculators except I can add subtract and divide also
Dark Slipstream Posted May 12, 2009 Report Posted May 12, 2009 It's relatively difficult to create a calculator with 1 textbox. I didn't learn it until grade 12, but it was rather easy since I had a year of experience. I'll upload some sources later today I made at school. They are in VB6 though.
dschu012 Posted May 15, 2009 Report Posted May 15, 2009 Factorial should be pretty easy since you only need a number as an input http://www.megaupload.com/?d=4YNY16JU Here is an example of a factorial calculator. If the answer is above 18446744073709552000 it won't work because that is the maximum size of a ulong. So as long as you use it to calculate the factorials of numbers below 60ish you should be good.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now