public class Test01{
public static void main(String[] args){
double a = 3 ;
double b = 7 ;
int temp = (int) ((a/b)*100) ;
double c = temp*0.01 ;
System.out.println(c) ;
}
}
public class Test01{
public static void main(String[] args){
double a = 3 ;
double b = 7 ;
int temp = (int) ((a/b)*100) ;
double c = temp*0.01 ;
System.out.println(c) ;
}
}
转载于:https://my.oschina.net/u/3824141/blog/1831131