Skip to content
Snippets Groups Projects
Commit 557d8979 authored by rejenver's avatar rejenver
Browse files

Upload New File

parent cd864de6
No related branches found
No related tags found
No related merge requests found
a = 23232323
b = a & 0xffffffff
count = 0
for x in range(32):
if ( a & (1 << x) != 0):
count = count + 1
print(a, bin(b), count)
print('수를 입력하세요 : ')
a = input()
if(a.isnumeric()):
a = int(a)
if a == 0 :
print('0은 나눗셈에 이용할 수 없습니다.')
else :
print('3 /', a, '=', 3/a)
else:
print("숫자를 입력하세요")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment