write this formula as aprogram
a^2=b^2+c^2-2*b*c*cos(alpha))
The formaula of the program will be like following:
a=sqrt(pow(b,2)+pow(c,2)-2*b*c*cos(alpha*PI/180.0))
I'm sure from it ,I 'll try now to convert it into aprogram
#include <iostream.h<
#include<math.h>
First_input()
{int b;int c; ing alpha;
cin>>b>>c>>alpha;
exit
}
Second_calculute()
{
a=sqrt(pow(b,2)+pow(c,2)-2*b*c*cos(alpha*PI/180.0))
exit
}
Third_print()
{ return a;
exit
}
main()
{first_input();
Second_calculute();
Third_print();
end
}
[/=code]
