public class y2 { public static double add(double a, double b) { return a+b; } public static double sub(double a, double b) { return a-b; } public static double mul(double a, double b) { return a*b; } public static double div(double a, double b) { return a/b; } public static void main(String[] args) { double x=6,y=2; System.out.println(add(x,y)); System.out.println(sub(x,y)); System.out.println(mul(x,y)); System.out.println(div(x,y)); } }
public class razer { public static double dog(double a, double b) { return a+b; } public static double cat(double a, double b) { return a-b; } public static double banana(double a, double b) { return a*b; } public static double apple(double a, double b) { return a/b; } public static void main(String[] args) { double x=7,y=5; System.out.println(dog(x,y)); System.out.println(cat(x,y)); System.out.println(banana(x,y)); System.out.println(apple(x,y)); } }
public class apple { public static double add(double a, double b) { return a+b; } public static double sub(double a, double b) { return a-b; } public static double mul(double a, double b) { return a*b; } public static double div(double a, double b) { return a/b; } public static void main(String[] args) { double x=6,y=2; System.out.println(add(x,y)); System.out.println(sub(x,y)); System.out.println(mul(x,y)); System.out.println(div(x,y)); } }
public class y2 { public static double add(double a, double b) { return a+b; } public static double sub(double a, double b) { return a-b; } public static double mul(double a, double b) { return a*b; } public static double div(double a, double b) { return a/b; } public static void main(String[] args) { double x=6,y=2; System.out.println(add(x,y)); System.out.println(sub(x,y)); System.out.println(mul(x,y)); System.out.println(div(x,y)); } }
21 則留言:
public class ex1 {
static double add(double x,double y)
{
return x+y;
}
static double sub(double x,double y)
{
return x-y;
}
static double mul(double x,double y)
{
return x*y;
}
static double div(double x,double y)
{
return x/y;
}
public static void main(String[] args) {
double x=6,y=2;
System.out.println("x+y="+add(x,y));
System.out.println("x-y="+sub(x,y));
System.out.println("x*y="+mul(x,y));
System.out.println("x/y="+div(x,y));
}
}
class EX1{
static double add(double x, double y )
{
return x+y;
}
static double sub(double x, double y )
{
return x-y;
}
static double mul(double x, double y )
{
return x*y;
}
static double div(double x, double y )
{
return x/y;
}
public static void main(String [] argv){
double x=6, y=2;
System.out.println("x+y="+add(x,y));
System.out.println("x+y="+sub(x,y));
System.out.println("x+y="+mul(x,y));
System.out.println("x+y="+div(x,y));
}
}
class test
{
public static double add(double x,double y)
{
return x+y ;
}
public static double sub(double x,double y)
{
return x-y ;
}
public static double mul(double x,double y)
{
return x*y ;
}
public static double div(double x,double y)
{
return x/y ;
}
public static void main(String[] args)
{
double x = 6;
double y = 2;
System.out.println(x+"+"+y+"="+add(x,y));
System.out.println(x+"-"+y+"="+sub(x,y));
System.out.println(x+"*"+y+"="+mul(x,y));
System.out.println(x+"/"+y+"="+div(x,y));
}
}
public class y2
{
public static double add(double a, double b)
{
return a+b;
}
public static double sub(double a, double b)
{
return a-b;
}
public static double mul(double a, double b)
{
return a*b;
}
public static double div(double a, double b)
{
return a/b;
}
public static void main(String[] args)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
public class razer
{
public static double dog(double a, double b)
{
return a+b;
}
public static double cat(double a, double b)
{
return a-b;
}
public static double banana(double a, double b)
{
return a*b;
}
public static double apple(double a, double b)
{
return a/b;
}
public static void main(String[] args)
{
double x=7,y=5;
System.out.println(dog(x,y));
System.out.println(cat(x,y));
System.out.println(banana(x,y));
System.out.println(apple(x,y));
}
}
public class apple
{
public static double add(double a, double b)
{
return a+b;
}
public static double sub(double a, double b)
{
return a-b;
}
public static double mul(double a, double b)
{
return a*b;
}
public static double div(double a, double b)
{
return a/b;
}
public static void main(String[] args)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[] arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[]arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
public class test
{
public static double add(double a, double b)
{
return a+b;
}
public static double sub(double a, double b)
{
return a-b;
}
public static double mul(double a, double b)
{
return a*b;
}
public static double div(double a, double b)
{
return a/b;
}
public static void main(String[]args)
{
double x=6, y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
public class Ex1 {
public static double add (double x,double y)
{return x+y;}
public static double sub (double x,double y)
{return x-y;}
public static double mul (double x,double y)
{return x*y;}
public static double div (double x,double y)
{return x/y;}
public static void main(String[] args) {
double x=6,y=2;
System.out.println(add (x,y));
System.out.println(sub (x,y));
System.out.println(mul (x,y));
System.out.println(div (x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[]arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[]arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
public class y2
{
public static double add(double a, double b)
{
return a+b;
}
public static double sub(double a, double b)
{
return a-b;
}
public static double mul(double a, double b)
{
return a*b;
}
public static double div(double a, double b)
{
return a/b;
}
public static void main(String[] args)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class EX1{
static double add(double x, double y )
{
return x+y;
}
static double sub(double x, double y )
{
return x-y;
}
static double mul(double x, double y )
{
return x*y;
}
static double div(double x, double y )
{
return x/y;
}
public static void main(String [] argv){
double x=6, y=2;
System.out.println("x+y="+add(x,y));
System.out.println("x+y="+sub(x,y));
System.out.println("x+y="+mul(x,y));
System.out.println("x+y="+div(x,y));
}
}
class EX1{
static double add(double x, double y )
{
return x+y;
}
static double sub(double x, double y )
{
return x-y;
}
static double mul(double x, double y )
{
return x*y;
}
static double div(double x, double y )
{
return x/y;
}
public static void main(String [] argv){
double x=6, y=2;
System.out.println("x+y="+add(x,y));
System.out.println("x+y="+sub(x,y));
System.out.println("x+y="+mul(x,y));
System.out.println("x+y="+div(x,y));
}
}
class EX1{
public static double add(double a,double b){
return a+b;
}
public static double sub(double c,double d){
return c-d;
}
public static double mul(double e,double f){
return e*f;
}
public static double div(double g,double h){
return g/h;
}
public static void main(String [] args){
double x=6;
double y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class aaa
{
public static double add(double x, double y)
{
return x+y;
}
public static double sub(double x, double y)
{
return x-y;
}
public static double mul(double x, double y)
{
return x*y;
}
public static double div(double x, double y)
{
return x/y;
}
public static void main(String [] arg)
{
double x=6;
double y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class EX1{
public static double add(double a,double b){
return a+b;
}
public static double sub(double c,double d){
return c-d;
}
public static double mul(double e,double f){
return e*f;
}
public static double div(double g,double h){
return g/h;
}
public static void main(String [] args){
double x=6;
double y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[]arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
class EX1{
static double add(double x, double y )
{
return x+y;
}
static double sub(double x, double y )
{
return x-y;
}
static double mul(double x, double y )
{
return x*y;
}
static double div(double x, double y )
{
return x/y;
}
public static void main(String [] argv){
double x=6, y=2;
System.out.println("x+y="+add(x,y));
System.out.println("x+y="+sub(x,y));
System.out.println("x+y="+mul(x,y));
System.out.println("x+y="+div(x,y));
}
}
class ex1{
public static double add(double a,double b)
{
return a+b;
}
public static double sub(double a,double b)
{
return a-b;
}
public static double mul(double a,double b)
{
return a*b;
}
public static double div(double a,double b)
{
return a/b;
}
public static void main(String[]arg)
{
double x=6,y=2;
System.out.println(add(x,y));
System.out.println(sub(x,y));
System.out.println(mul(x,y));
System.out.println(div(x,y));
}
}
張貼留言