L
lector
#include <stdio.h>
#include <math.h>
#define M_PI 3.14159
int main(void)
{
double theta, phi, sinth;
double count;
double incr;
double s;
s = 180/M_PI; /* converting to radians */
incr = 0.5;
theta = 0;
for(theta = incr; theta < 180; theta += incr)
sinth = sin(s *theta);
for(phi = 0; phi < 360 ; phi += incr/ sinth)
count ++;
printf("%f", count);
return 0;
}
#include <math.h>
#define M_PI 3.14159
int main(void)
{
double theta, phi, sinth;
double count;
double incr;
double s;
s = 180/M_PI; /* converting to radians */
incr = 0.5;
theta = 0;
for(theta = incr; theta < 180; theta += incr)
sinth = sin(s *theta);
for(phi = 0; phi < 360 ; phi += incr/ sinth)
count ++;
printf("%f", count);
return 0;
}