Any idea why this program is not generating an output ?
- From: lector <hannibal.lector99@xxxxxxxxx>
- Date: Mon, 7 Apr 2008 22:53:01 -0700 (PDT)
#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;
}
.
- Follow-Ups:
- Re: Any idea why this program is not generating an output ?
- From: Doug Miller
- Re: Any idea why this program is not generating an output ?
- From: William Pursell
- Re: Any idea why this program is not generating an output ?
- From: Peter Nilsson
- Re: Any idea why this program is not generating an output ?
- Prev by Date: Re: How to make it faster?
- Next by Date: Re: Any idea why this program is not generating an output ?
- Previous by thread: Re: Why would someone use c++ compiler on a C code?
- Next by thread: Re: Any idea why this program is not generating an output ?
- Index(es):
Relevant Pages
|