Untitled
Anonymous
java
07/20/2024 1:30 AM
324 B
44
Indexable
import java.util.Scanner;
public class P1 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println(n / (int) (Math.pow(10, (int) Math.log10(n))));
}
}Editor is loading...
Leave a Comment