Hi. im trying to sum even fibonacci numbers only. ie. 0 2 2 4 6 10 16 ect.. could someone indicate where i've gone wrong.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
Type: Posts; User: Tokalosh
Hi. im trying to sum even fibonacci numbers only. ie. 0 2 2 4 6 10 16 ect.. could someone indicate where i've gone wrong.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
it was a simple loop that had to be added.
#include <stdio.h>
#include <stdlib.h>
/* summing the first 1000 numbers of multiples 3 & 5 */
int main ()
NEVERMIND solved it. Dont know how to take this down.
if i put in 10, i get a return of 24 instead of 23, can someone tell me where im going wrong.
#include <stdio.h>
#include <stdlib.h>
Hi.
Could someone please explain to me why this is wrong and how to fix it. thank you.
int main()
{
Thank you for the help.
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
float b;
float a;
float c;
float z;
float r;
int main()
{
Ok I put the header in and changed the printf but still doesn't work.
Hi. the return values are not coming out properly. Any reasons why would be a big help.
#include <stdio.h>
#include <stdlib.h>
float b;
float a;
float c;
haha i can't believe i missed that, thanks man!
Hi.
my code isnt running, i think it may have something to do with the first printf and scanf functions. How do i transfer the inputted number to the following statement and have it run properly.
...
thank you.
Hi. Could someone tell me if this is possible? If so why isnt it running?
I want to know if you can use if statements in cases.
int main(void);
{
int x;
printf("please enter a...