import java.util.Scanner;

public class Main {

	static Scanner scan = new Scanner(System.in);
	
	public static void main(String[] args)
	{
		while ( scan.hasNextInt() )
		{
			double x;
			x = scan.nextDouble();
			x *= Math.PI / 180;
			System.out.printf("%.3f",Math.sin( x ));
		}
	}

}

  

运行截图:

 

posted on 2017-02-23 22:10  小明在努力  阅读(1760)  评论(0编辑  收藏  举报