http://img708.imageshack.us/img708/5089/itfib.png Its stuck at 0.000000000 on all results. I posted this up before and people were able to get a number on it but every time I try, it always gives me those 0s.
#include<time.h>
#include<sys/file.h>
#include<stdio.h>
int main ( )
{
int j=1, fib, n, i=1, k=0;
int choice;
float x,y,z;
printf("input the fib number you want: ");
scanf("%d", &n);
x = clock(); //start clock
while (k <=n)
{
fib = i + j;
i = j;
j = fib;
++k;
printf( "The fib number is %d\n ", fib);
}
y = clock(); // end clock
z = (y - x) / CLOCKS_PER_SEC;
printf("\n\nThe execution time was: %.15f", z);
return 0;
}