Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task2 {
- public static void main(String[] args) {
- double a, b, c, z;
- Scanner in = new Scanner(System.in);
- System.out.println("Enter a, b, c");
- a = in.nextDouble();
- b = in.nextDouble();
- c = in.nextDouble();
- z = (b + Math.sqrt(b + 4 * a * c)) / (2 * a) - Math.pow(a, 3) * c - Math.pow(b, -2);
- System.out.println(z);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement