The title describes what I'm trying to do, but I'm getting the error message that I never declared base1. I actually know this, but I'm not exactly sure how to actually fix the problem.
int getBase1(void); int setBase1(double); int main(void){ getBase1(); setBase1(base1); } int getBase1(void){ printf("Please enter the length of a base: "); return; } int setBase1(double base1){ scanf("%lf", &base1); }
base1name is not defined inside the scope ofmain, which is entirely correct. You probably want to elaborate more on what you want to achieve.