Multiply Function [x]
|
08-05-2018, 03:33 AM
(This post was last modified: 08-05-2018 06:21 AM by Gamo.)
Post: #17
|
|||
|
|||
RE: Multiply Function [x]
Thank You to everyone who gave more information about this topic.
I came across to this "Division Function" as well by using the "Repeated Subtraction" algorithm I decided to program this division function by using the repeated substraction. This algorithm will work only with perfect division result so I make this program that if division is not perfect then return result as (-1) Example: First Start f [REG] 24÷3 24 [ENTER] 3 [R/S] ---> 8 2475÷25 2475 [ENTER] 25 [R/S] ---> 99 2475÷24 2475 [ENTER] 24 [R/S] ---> -1 // Not a perfect division Program: Division by Repeated Subtraction Code:
Gamo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)