Develop a simple calculator in java with full of operations.
Note: the program should take the input value from users and perform the activities like:
Accordingly, the operations in this program should have the above options so as to perform all computing activities.
public class SimpleCalculator {
public double plus(double a, double b) {
return a + b;
}
public double minus(double a, double b) {
return a - b;
}
public double multiply(double a, double b) {
return a * b;
}
public double divide(double a, double b) {
return a / b;
}
}
Comments
Leave a comment