public class Equ{
public static void main(String [] args){
float a=9, b=2, c=3, x=6, y=5, z=1, m=0, p=0;
m=a*x-b*y+c/z;
System.out.println("The value of m is:"+m);
p=a*a+2*a*b-b*b;
System.out.println("The value of p is:"+p);
}
}
public static void main(String [] args){
float a=9, b=2, c=3, x=6, y=5, z=1, m=0, p=0;
m=a*x-b*y+c/z;
System.out.println("The value of m is:"+m);
p=a*a+2*a*b-b*b;
System.out.println("The value of p is:"+p);
}
}
No comments:
Post a Comment