thanks
Type: Posts; User: astrodude15
thanks
That link provided doesnt go to a thread
//TJ Wright 11 3
#include <stdio.h>
int main ()
{
int m, count=0,n[30];
printf("Enter the numbers, one per line");
for(m=1;m<=20;m++)
{
//TJ Wright 11 3
#include <stdio.h>
int main ()
{
int m, count=0,n[30];
printf("Enter the numbers, one per line");
for(m=1;m<=20;m++)
{
Thank you all very much for your help and sharing your knowledge!
I could use break; instead of the goto, and it would work fine.
"this steps off the end of the array"
What does that mean?
Teh first term is 1, the second term is 2, and for all n>=3 the nth term is equal to term (n-1) plus term n/2, where n/2 is rounded down.
Program should prompt for n, and then display the nth term...
-1 2 3 -3
3141.60
2827.44
3455.76 <****first number wrong.
4398.24
3455.76
should be:
3141.60
//Volume=100*3.1416*(height of water)
#include <stdio.h>
#define factor 314.16
void main (void)
{
int o,h,m,k,y,w=1,r;
float now[34],ch[56],volume1,volume2[40];
while(w<=3)
We have always been taught, when writing programs, to use:
#include <stdio.h>
void main (void)
{
}
#include <stdio.h>
#include <math.h>
void main (void)
{
int m,k,num,x[50];
for(m=1;m<=6;m++)
{
printf("Enter the number of numbers to be entered\n");