URI --1761 (Christmas Decorations)

Problem Link

Solution : 


/// Author : Md.Shohanur Rahaman
/// URI --1761 (Christmas Decorations)
/// Easy Problem
#include<stdio.h>
#include<math.h>
#define PI 3.141592654
int main()
{
double a,b,c,tmp,angel,ans;
while(scanf("%lf %lf %lf",&a,&b,&c)==3){
angel=tan ( a * PI / 180.0 );
tmp=angel*b;
ans=tmp+c;
printf("%.2lf\n",ans*5);
}
return 0;
}

Related Posts: