You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package ¼ÆËãÆ÷;
|
|
|
|
public class c {
|
|
|
|
public double add(double a,double b)
|
|
{
|
|
return a+b;
|
|
}
|
|
|
|
public double min(double a,double b)
|
|
{
|
|
return a-b;
|
|
}
|
|
|
|
public double mul(double a,double b)
|
|
{
|
|
|
|
return a*b;
|
|
}
|
|
|
|
public double div(double a,double b)
|
|
{
|
|
if(b!=0)
|
|
return a/b;
|
|
else
|
|
return 0;
|
|
|
|
}
|
|
}
|