SIMPLE CALCULATOR with user-defined methods..
**********************************
public class Calculator
{
public static int addition(int a, int b)
{
int c = a+b ;
return c;
}
public static int subtract(int a, int b)
{
int c= a-b;
return c;
}
public static int multiply(int a, int b)
int c=a*b;
return c;
}
public static int divide(int a, int b)
{
int c=a/b;
return c;
}
}
*********************************
Visit us on YouTube --
0 Comments