Untitled

mail@pastecode.io avatar
unknown
java
3 years ago
739 B
3
Indexable
Never
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Second {
    public static void main(String[] args) throws IOException {
        BufferedReader reader =
                new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Введите a");
        Double a = Double.parseDouble(reader.readLine());
        System.out.println("Введите b");
        Double b = Double.parseDouble(reader.readLine());
        if (b==(5*Math.pow(a,2)-7*a+2)){
            System.out.println("График проходит через эту точку");
        }else {
            System.out.println("Не подходит");
        }
    }
}