# Search:

Type: Posts; User: brianjoo

1. ## Thread: Recursive function that returns the sum of all prime numbers from 2-n.

by brianjoo
Replies
7
Views
2,180

### Ah i see. Thank you very much for your time.

Ah i see. Thank you very much for your time.
2. ## Thread: Recursive function that returns the sum of all prime numbers from 2-n.

by brianjoo
Replies
7
Views
2,180

### oh i see. This is one of my hw assignments and it...

oh i see. This is one of my hw assignments and it stated that recursion was mandatory. Imo i think a for loop would make this process much easier, but i can't do that.
3. ## Thread: Recursive function that returns the sum of all prime numbers from 2-n.

by brianjoo
Replies
7
Views
2,180

### because 6 is even*

because 6 is even*
4. ## Thread: Recursive function that returns the sum of all prime numbers from 2-n.

by brianjoo
Replies
7
Views
2,180

### Sorry i meant to ask why i was getting zero as my...

Sorry i meant to ask why i was getting zero as my answer. Yea i understand that it should be 10, but where did i go wrong? I understand why i get 0 for my very first num, because 10 is even; however,...
5. ## Thread: Recursive function that returns the sum of all prime numbers from 2-n.

by brianjoo
Replies
7
Views
2,180

### Recursive function that returns the sum of all prime numbers from 2-n.

When i use 6 as my n, i get 0, which makes sense to me.;however, why do i get 6 for my final result? Why does it not do 0+5+...etc..?

//source.c file
unsigned int...
6. ## Thread: How do i assign pointers to specific array values?

by brianjoo
Replies
2
Views
645

### I should have caught that. Thank you very much.

I should have caught that. Thank you very much.
7. ## Thread: How do i assign pointers to specific array values?

by brianjoo
Replies
2
Views
645

### How do i assign pointers to specific array values?

Am i assigning the pointers incorrectly?
for (c = 0; c < 5; c++)

printf("%d\n", array[c]);
*p1 == array[0];
*p2 == array[1];
*p3 == array[2];
*p4 == array[3];
*p5 == array[4];...
8. ## Thread: not sure what i am doing wrong.

by brianjoo
Replies
10
Views
795

### I have not learned about array; however, your...

I have not learned about array; however, your answer has helped me. I can not believe i forgot about that. Thank you very much.
9. ## Thread: not sure what i am doing wrong.

by brianjoo
Replies
10
Views
795

### not sure what i am doing wrong.

The requirement for this project is
1)double calculate_deviation (double number, double mean) - Determines the deviation of number from the mean and returns the result. The deviation may be...
10. ## Thread: Character encoding: encoded_character = 10 + (plaintext_character - 'a') + 'A'

by brianjoo
Replies
2
Views
746

### Character encoding: encoded_character = 10 + (plaintext_character - 'a') + 'A'

This is my code so far

char encoded_character = NULL, plaintext_character = NULL;

//3.1 Get encoded_character and plaintext_character from user
11. ## Thread: Volume of a cylinder: volume_cylinder = PI * radius2 * height

by brianjoo
Replies
2
Views
691

### Thanks

Yea it worked, but the volume of a cylinder does not include .333333. But if it did, inputing .3333333 instead of (1/3) works, so thanks.
12. ## Thread: Volume of a cylinder: volume_cylinder = PI * radius2 * height

by brianjoo
Replies
2
Views
691

### Volume of a cylinder: volume_cylinder = PI * radius2 * height

/*Name:Brian
Date:9/3/17
First Project

*/
Results 1 to 12 of 12