This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
package eµÄx´Î·½;
public class power{
public static int factorial(int n){
int factorial=1;
int counter=1;
while (counter<1+n){
factorial*=counter+1;
counter++;
}
return factorial;
public static double ex(int n,int x){
double ex=1.0;
while (counter<=n){
ex+=(double)Math.pow(x,counter)/factorial(counter);
return ex;