Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //A basic example of boolean algebra
- 0->D
- 1->A
- 3->B
- 5->C
- If A=1
- D+1->D
- If B=3
- D+7->D
- If C=5
- D-5->D
- Could be written a lot like this
- D+(A=1)+7(B=3)-5(C=5)->D
- /////////////////////////////////////
- //If A equals 1, then (A=1) Returns a value of 1. Making it D + 1 +....
- //If B=3. Then it returns a value of one. Which is multiplied by 7. then added in line.
- //This can be used with any math operator, and can be used for some
- //very fun programming tricks, which I will get into later
- ////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment