我应该像那样用Java编写吗?如果没有,我应该怎么写?
import java.util.*;
public class Soru {
public static void main(String[] args) {
int m,n,c;
double f=0;
Scanner type = new Scanner(System.in);
System.out.print("Enter the m value :");
m=type.nextInt();
System.out.print("Enter the n value :");
n=type.nextInt();
System.out.print("Enter the c value :");
c=type.nextInt();
f=Math.pow(c, m/n);
System.out.println("Resul:"+f);
}
}