To solve the problem, the number n should be divided by 10.
Algorithm Implementation
Read the input value n.
scanf("%d", &n);
Calculate and print the result.
res = n / 10; printf("%d\n", res);