#include <stdio.h>
#include <math.h>
#define PI 3.14159265
void main(void)
{
float calculate_Sine_Cosine_Tangent(float param);
int result1, result2,result;
float param;
printf("Please Enter in degree");
scanf("%d",¶m);
}
float calculate_Sine_Cosine_Tangent(float param)
{
float result, result1, result2;
result = tan (param*PI/180);
result1 = sin (param*PI/180);
result2 = cos (param*PI/180);
if (param<=45){
printf ("The tangent of %lf degrees is %lf.\n,The sine of %f degree is %f\n,The Cosine of %f degrees is %f\n",
param, result,param,result1,param,result2 );
}
else{
printf ("The tangent of %lf degrees is Math Error.\n,The sine of %f degree is %f\n,The Cosine of %f degrees is %f\n",
param,param,result1,param,result2 );
}
return 0;
}
I need help with this function >.<
i have no idea where went rong>.<
I need help with this function >.<
i have no idea where went rong>.<
So you're saying you're...'out of your vector'?
Attention all yoctograms! Use [code][/code] tags around your code! It preserves it beauty!
Why does the calculate function return anything when all it will return is 0? Functions with useless return values are garbage!
CRUNCH!
I'll add them to the heap!