Hey guys,
I'm having some problems with a c program I wrote:
#include <stdio.h> #include <math.h>
int main(int argc, char * argv[]) { double A,B,to,t,tau,vct;
printf("enter value for A "); scanf("%lf",&A);
printf("enter a value for B "); scanf("%lf",&B);
printf("enter a value for to "); scanf("%lf",&to);
printf("enter a value for tau "); scanf("%lf",&tau);
printf("enter a value for vct "); scanf("%lf",&vct);
t=-tau*log(vct-A/B)+to; printf("%lf",&t); return 0; }
I'm getting an error: "file.c:26: warning: format ‘%lf’ expects type ‘double’, but argument 2 has type ‘double *’
Not sure what I did wrong. Any help will be appreciated.