The first digit of a two-digit number

Report a typo

Write a program that takes a two-digit integer as an input and prints its first digit (i.e., the number of tens).

Try to make use of the integer division // operator, which returns the integer part of a division of two numbers. By which number should you divide to find the first digit of a number?

Sample Input 1:

42

Sample Output 1:

4
Write a program in Python 3
# put your python code here
___

Create a free account to access the full topic