Created
December 16, 2011 02:31
-
-
Save takuma7/1484156 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mondai19_2{ | |
public static void main(String[] args){ | |
double b=Double.parseDouble(args[0]); | |
double c=Double.parseDouble(args[1]); | |
double _A=Double.parseDouble(args[2]); | |
double a=Math.sqrt(c*c + b*b - c*b*Math.cos(_A)); | |
double area=b*a/2; | |
System.out.println("b:" + b + "\nc:" + c + "\nA:" + _A + "\narea : " + area); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment