Skip to content

Instantly share code, notes, and snippets.

@takuma7
Created December 16, 2011 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuma7/1484156 to your computer and use it in GitHub Desktop.
Save takuma7/1484156 to your computer and use it in GitHub Desktop.
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