if (5 * a * a - 7 * a + 2 == b) {
System.out.println("Да");
} else {
System.out.println("Нет");
}
import java.util.Scanner;
public class Function graph {
public static void main(String[] args) {
Scanner s = new Scanner (System.in);
System.out.println("ввести y");
int y = s.nextInt();
System.out.println("ввести x");
int x = s.nextInt();
if (5 * x * 2 - 7 * x + 2 == y) {
System.out.println("Да");
} else {
System.out.println("Нет");
}
}
}