how to make a number to vector?
조회 수: 2(최근 30일)
Voss 2022년 7월 8일
It's not clear what you want, but here's a way to get a number from the user and make a vector of its digits (assuming it's a positive integer):
number = input('Give me a number, user: ','s');
vector = number - '0';