Login
Immutable PageDiscussionInfoAttachments
rei05/C言語/10025

MMA

   1 #include<stdio.h>
   2 #include<math.h>
   3 int main(){
   4 
   5 int a,b,c;
   6 float s,l,h;
   7 
   8 scanf("%d %d %d",&a,&b,&c);
   9 
  10 s=(float)a*b*sinf((float)c/360*2*M_PI)/2;
  11 l=(float)a+b+sqrt(a*a+b*b-2*a*b*cosf((float)c/360*2*M_PI));
  12 h=(float)2*s/a;
  13 
  14 printf("%f\n%f\n%f\n",s,l,h);
  15 
  16 return(0);
  17 }

rei05/C言語/10025 (last edited 2012-05-16 17:10:22 by rei05)