hey, this is my first c program (yeah, helloworld wasn't challenging enough). But it gets down to a linking error... could anyone let me know what I am doing wrong?
Code:#include <stdio.h> int main() { float rt=0; float y=0; float yt=0; float p=0; float r=0; float t=0; char s[10]; float i=0; printf("How much money will you pay per week?\n"); gets(s); p=atoi(s); printf("What is the interest rate?\n"); gets(s); r=atoi(s); printf("How many years will you make payments?\n"); gets(s); yt=atoi(s); yt=yt+1; for(y=0;y<yt;y++) { i=((p*52)+t)*r; printf("You will make %.2d in interest in %d years.\n",i,y); rt=i=(p*52); t=t+rt; printf("You will make %.2d total in %d years.\n",t,y); printf("Press Enter.\n"); getchar(); } return(0); }