When I run the program, the output seems correct
package com.codegym.task.task06.task0612;
public class Calculator {
public static int plus(int a, int b) {
//write your code here
return (a + b);
}
public static int minus(int a, int b) {
//write your code here
return (a - b);
}
public static int multiply(int a, int b) {
//write your code here
return (a * b);
}
public static double division(int a, int b) {
//write your code here
return ((double)a/(double)b);
}
public static double percent(int a, int b) {
//write your code here
double c = ((double)b/(double)a)*100;
return c;
}
public static void main(String[] args) {
System.out.println(Calculator.percent(7, 2));
}
}