include stdio include stdlib include math int main void double tg prin

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(void)
{
double tg, A, B, S, x;
printf ("Enter รต:\n");
scanf ("%lf", &x);
tg=tan(x);
if (tg<=0 || tg==1) printf ("Eror\n");
else
{
A=sqrt(abs((log10(tg))*(log10(tg))-123));
B=exp(-3*x)+atan(x);
if (B==0) printf ("Eror\n");
else
{
S=A/B;
}
printf ("%lf\n", S);
}
system("PAUSE");
return 0;
}