public class A{public static void main(string[] args){int h = 3;int v = 2;int a = 1;int y = 4;int c = 5;int e = h*v - a;int u = e/y ;int x = h*c - a;System.out.println("E的值为:" + e);System.out.println("U的值为:" + u);System.out.println("x的值为:" + x);}}这个是用JAVA写的,不规范,但是满足你的要求
public static void cacl(int h, int v, int A, int y, int c){double x = h * c / A;double E = h * v - A;double U = E / y;System.out.print(x + "\t" + E + "\t" + U);}