import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Name: ");
String name = in.nextLine();
System.out.println("Average mark: ");
double mark = in.nextDouble();
System.out.println("Group: " + (name.charAt(0) % 10 == 0 ? "10" : name.charAt(0) % 10));
}
}
Comments
Leave a comment