Using python:

Given a two-digit integer, print its left digit (a tens digit) and then its right digit (a ones digit). Use the operator of integer division for obtaining the tens digit and the operator of taking the remainder for obtaining the ones digit.

Example input

79

Example output

7 9

Respuesta :

Answer:

number = 79

left_digit = int(number / 10)

right_digit = number % 10

print(str(left_digit) + " " + str(right_digit))

Explanation:

- Initialize the number

- In order to find its left digit, divide the number by 10 and get the integer part of the division.

- In order to find its right digit, use modulo operation

- Print the results