Please, help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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

11th Jun 2022, 7:09 PM
NetStalker
NetStalker - avatar
11 Answers
+ 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.
11th Jun 2022, 7:53 PM
Justice
Justice - avatar
+ 1
Where's your attempt?
11th Jun 2022, 7:29 PM
Justice
Justice - avatar
+ 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.
11th Jun 2022, 7:39 PM
Justice
Justice - avatar
+ 1
I don't understand what to do at all. The task is not clear to me
11th Jun 2022, 7:40 PM
NetStalker
NetStalker - avatar
+ 1
And I would like to get help in solving the problem from a knowledgeable person.
11th Jun 2022, 7:40 PM
NetStalker
NetStalker - avatar
+ 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.
11th Jun 2022, 7:46 PM
Justice
Justice - avatar
+ 1
This is all clear, I need to reproduce it in the form of ruby code.
11th Jun 2022, 7:47 PM
NetStalker
NetStalker - avatar
+ 1
Exactly! Try making some pseudocode to break the problem into smaller bits before jumping in right away.
11th Jun 2022, 7:48 PM
Justice
Justice - avatar
+ 1
Thanks
11th Jun 2022, 8:12 PM
NetStalker
NetStalker - avatar
0
I'm asking for help, because I don't know what to do at all)
11th Jun 2022, 7:30 PM
NetStalker
NetStalker - avatar
- 2
I wrote this question here to get the code.
11th Jun 2022, 7:49 PM
NetStalker
NetStalker - avatar