|
sin怎么用啊,哪里错了,哥哥们帮我看看
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class n {
public static void main(String[]args)throws IOException{
BufferedReader reader=new BufferedReader(new
InputStreamReader(System.in));
System.out.println("F=R sin a");
System.out.println("输入R:");
int R=Integer.parseInt(reader.readLine());
System.out.println("输入a:");
int a=Integer.parseInt(reader.readLine());
double sina= Math.sin(a);
double jieguo=R*sina;
System.out.println("F="+jieguo);
}
} |
|