Ashish Patel: Notes

Atom feed

Recently added: Xunit, Publisher subscriber pattern, Request reply pattern, Middleware pattern, Command pattern

Random Formulas

Inverse a Number

Mod(%) operation on a number by 10 returns the rightmost digit Divide(/) operation on a number by 10 removes the rightmost digit

Num = 126

$Num = (1100) + (210) + (6)$


Reversing 126 % 10 = 6
int(126/10) = 12
12 % 10 = 2
int(12/10) = 1
1 % 10 = 1

$Reverse = (6100) + (210) + (1)$

Created 2019-01-23T11:45:03+05:18 · Edit