hey guys , i would like to share with you a problem:
i have 7 bits num, all i need to check how much "1" i got in the num.
exmple: if the num is: 1001101 i should output 100.
i solved the prob , by trying again and again but i couldn't understand why this is true, or how next time, ill do it better, and have a straight way to solve it.
the solution is attached.
if someone can walk with me step by step whats the idea and the princple that i need to walk through it will be more then great!
thx!!!!!
i have 7 bits num, all i need to check how much "1" i got in the num.
exmple: if the num is: 1001101 i should output 100.
i solved the prob , by trying again and again but i couldn't understand why this is true, or how next time, ill do it better, and have a straight way to solve it.
the solution is attached.
if someone can walk with me step by step whats the idea and the princple that i need to walk through it will be more then great!
thx!!!!!
Attachments
-
27.9 KB Views: 23