How to find the tens and ones

Regarding the title, I was worried about the solution more than I imagined, so as a memorandum.

image.png

(Example) If input == 69 tens = (69 / 10) % 10 == 6 ones = (69 / 10) % 10 == 9 It will be.

Recommended Posts

How to find the tens and ones
[Ruby] How to get the tens place and the ones place
How to find the total score and average score
How to find the average angle
Difference between Java and JavaScript (how to find the average)
How to find the cause of the Ruby error
[Ruby] How to find the sum of each digit
How to find the distance and angle between two points on a plane
How to run React and Rails on the same server
How to check the extension and size of uploaded files
How to use the link_to method
How to use StringBurrer and Arrays.toString.
How to find May'n in XPath
How to use the include? method
How to use the form_with method
How to use the wrapper class
How to call classes and methods
How to use equality and equality (how to use equals)
How to connect Heroku and Sequel
How to convert LocalDate and Timestamp
How to add the delete function
How to find Java prime numbers
[Rails] How to get the URL of the transition source and redirect
[Swift5] How to get an array and the complement of arrays
[Rails] How to introduce kaminari with Slim and change the design
How to install and configure the monitoring tool "Graphite" on Ubuntu
[jOOQ] How to CASE WHEN in the WHERE / AND / OR clause
How to install the language used in Ubuntu and how to build the environment
How to place and share SwiftLint config files on the server
[Java] How to convert from String to Path type and get the path
How to use OrientJS and OrientDB together
[Java] How to use the File class
How to delete the wrong migration file
[Java] How to use the hasNext function
How to put out the error bundling
[Java] How to use the HashMap class
How to delete the migration file NO FILE
[Rails] How to use the map method
Studying how to use the constructor (java)
[Processing × Java] How to use the loop
How to determine the number of parallels
How to set up and use kapt
[Java] How to set the Date time to 00:00:00
[Java] How to get the current directory
[Swift] How to implement the countdown function
How to change the timezone on Ubuntu
How to build SquashTM and how to support Japanese
Ransack sort_link How to change the color!
[Processing × Java] How to use the class
How to sort the List of SelectItem
How to install the legacy version [Java]
How to pass the value to another screen
How to get the date in java
[Processing × Java] How to use the function
[Easy] How to upgrade Ruby and bundler
How to use substring and substr methods
[Java] How to use the Calendar class
Summarized how to climb the programming stairs
Note: [Docker] How to start and stop
How to write and explain Dockerfile, docker-compose
How to use @Builder and @NoArgsConstructor together