Home > database >  Pseudo code
Pseudo code

Time:10-09

How to make use of pseudo code algorithm, unsigned binary integer is converted to a decimal,

CodePudding user response:

Initial value=0
Traverse from high to low
The begin
If the current number is 1
The begin
Initial value +=2 ^ current
End
end
  • Related