Skip to content
Snippets Groups Projects
Commit c31759de authored by KimTaeeun's avatar KimTaeeun
Browse files

Upload New File

parent ed842219
No related branches found
No related tags found
No related merge requests found
print("23232323의 맨 뒤 32번째의 bin 값")
print("")
a = 23232323
b = a & 0xffffffff
count = 0
for x in range(32) :
if( a & (1 << x) != 0) :
count = count+1
print(a,bin(a),count)
a = 23232323
b = a & 0xffffffff
count = 0
for x in range(32) :
if( a & (1 << x) != 0) :
count = count+1
print(a,bin(a),32-count)
a = 23232323
b = a & 0xffffffff
count = 0
for x in range(32) :
if( a & (1 << x) == 0) :
count = count+1
print(a,bin(a),count)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment