- 1
Please, help
Given a non-negative integer. Find the number of tens (that is, the second digit on the right). Input data format The input is given a natural number not exceeding 10000. Output data format Print one integer - the number of tens. Sample Input: 4567 Sample Output: 6
12 odpowiedzi
+ 2
We are not here to do the work for you. You explicitly said "The task is not clear to me", so I did my best to clear it for you. But I am not going to give you the answer. That's not help, that's just asking someone to do the work for you.
+ 1
Where's your attempt?
+ 1
What's exactly do you need help with? Is there a certain part of the task you do not understand?
"Help" is too vague. Just like you were going to a doctor and you just said "I'm in pain"... You need to give the doctor more specific information on where that pain is, what the pain is like and how it's affecting you to get the proper help you need.
+ 1
I don't understand what to do at all. The task is not clear to me
+ 1
And I would like to get help in solving the problem from a knowledgeable person.
+ 1
It's pretty much asking you to give the number in the tens-place.
So for the sample input, it's 4567 the tens place of that number is 6.
Another one would be 350. The tens place would be 5.
Another example can be 90. The place is 9.
Another example can be 12345. The tens place is 4.
Do you see the pattern? It's just asking you to determine what the tens place of a given number is.
+ 1
This is all clear, I need to reproduce it in the form of ruby code.
+ 1
Exactly! Try making some pseudocode to break the problem into smaller bits before jumping in right away.
+ 1
Thanks
0
I'm asking for help, because I don't know what to do at all)
- 2
I wrote this question here to get the code.