Alright, I'm completely beat as to how my program cannot be working. I'm having trouble simply reading in some numbers to use.
After the third scanf, when running the program, the program sort of freezes. The cursor blinks, but nothign can be entered, i can only kill the window.
The program is not complete of course, but it should at least be able to read in the 3 numbers, "reli", "trials", and "seed". I should also be able to get to the system pause.
Here's the code, help me if you can, thanks.
int trials, flag, i, c, j, k;
float reli, seri, para, comp, counts, countp, countc;
unsigned int seed;
printf ("Please enter the decimal value of you component reliablility: ");
scanf ("%f", &reli);
printf ("Please enter the number of trials you'd like to perform: ");
scanf ("%f", &trials);
printf ("Please enter the seed value for the random number: ");
scanf ("%u", &seed);
for (i=0; i<=trials; i++)
for (c=0; c<3; c++)
seri = ((float) rand()/RAND_MAX);