Commit c3b924d8 authored by Narumon Mokpha 's avatar Narumon Mokpha

ส่งงานค่ะ

parent 078d4361
...@@ -4,7 +4,6 @@ def value(v,p,n): ...@@ -4,7 +4,6 @@ def value(v,p,n):
return sign*sum([v[i]*2**(p-i)for i in range(1,(p+n+1))]) return sign*sum([v[i]*2**(p-i)for i in range(1,(p+n+1))])
v = [0, 0,0,0,1, 0,1,1]
print( value(v,4,3) ) print( value(v,4,3) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment