I've tried these several different ways that displayed properly but it won't take it and says it's wrong.
any help would be appreciated, thanks.
package en.codegym.task.jdk13.task06.task0612;
/*
Calculator
*/
public class Calculator {
public static int plus(int a, int b) {
return a + b;
}
public static int minus(int a, int b) {
return a - b;
}
public static int multiply(int a, int b) {
return a * b;
}
public static double divide(int a, int b) {
return (a *1.0) / b;
}
public static double percent(int a, int b) {
return (b * 100.0) / a;
}
public static void main(String[] args) {
//System.out.println(divide(100, 10)); // returns 10.0
//System.out.println(percent(100,6)); // returns 6.0
}
}