import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("f = ");
int f = in.nextInt();
System.out.print("g = ");
int g = in.nextInt();
System.out.print("e = ");
int e = in.nextInt();
double a = Math.pow((g-f)/(g+e), 3) - (e-f+Math.pow(45.45, 2) - g*g*g)/(25.3 - g*g);
double x = 42*a*a-Math.pow(55.75,2)*g/28.0 + 21.0*a/Math.pow(e*e*e-g,2);
double w = x/100.1+x/(25*25)+a/(f-3.7*(f-3));
double h = f*f*f-3*g-7.2*e*w+x*x*x/w;
System.out.println("a = " + a);
System.out.println("x = " + x);
System.out.println("w = " + w);
System.out.println("h = " + h);
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.print("f = ");
int f = in.nextInt();
System.out.print("g = ");
int g = in.nextInt();
System.out.print("e = ");
int e = in.nextInt();
double a = Math.pow((g-f)/(g+e), 3) - (e-f+Math.pow(45.45, 2) - g*g*g)/(25.3 - g*g);
double x = 42*a*a-Math.pow(55.75,2)*g/28.0 + 21.0*a/Math.pow(e*e*e-g,2);
double w = x/100.1+x/(25*25)+a/(f-3.7*(f-3));
double h = f*f*f-3*g-7.2*e*w+x*x*x/w;
System.out.println("a = " + a);
System.out.println("x = " + x);
System.out.println("w = " + w);
System.out.println("h = " + h);
}
}