2588번 - 곱셈
A = int(input())
B = input()
print(A*int(B[2]))
print(A*int(B[1]))
print(A*int(B[0]))
print(A*int(B))
이렇게 코딩하면 되는대
B = int(input())
print(A*B[2])
print(A*B[1])
print(A*B[0])
print(A*B)
이렇게 하면 왜 안되는 걸까요?
와!! 진짜 생각치도 못했네요ㅋㅋ 답변해주셔서 감사합니다!!
댓글을 작성하려면 로그인해야 합니다.
abok200 3년 전
A = int(input())
B = input()
print(A*int(B[2]))
print(A*int(B[1]))
print(A*int(B[0]))
print(A*int(B))
이렇게 코딩하면 되는대
A = int(input())
B = int(input())
print(A*B[2])
print(A*B[1])
print(A*B[0])
print(A*B)
이렇게 하면 왜 안되는 걸까요?