Is it possible to convert a user inputted 4-digit number such as: '1234' into an array which holds the digits of that number in each index. So for this number it would convert to: [1, 2, 3, 4]. If...
Type: Posts; User: daniel95
Is it possible to convert a user inputted 4-digit number such as: '1234' into an array which holds the digits of that number in each index. So for this number it would convert to: [1, 2, 3, 4]. If...
Yes and thank you for that, the only thing I'm having trouble with now is how to accept a user determined amount of numbers. I know how to accept a defined amount of numbers but not an amount that...
It doesn't say anything about that so I'd assume it would just be the number itself.
So since it says to calculate the product of the odd numbers entered, in your example would it just be 5?
I'm having trouble understanding exactly what I'm supposed to do with this problem, if anyone could try to explain it that would be very appreciated. Thanks.
Problem:
Write a program that accepts...
I have to create a calendar for a single month and I'm starting by trying to figure out how to start a new line after every week. However, I'm not aloud to use if statements which sucks because I...