Okay, well, it didn't clear it up a whole lot, but i think i might have the general idea. Check it out. I think it's good except I keep getting syntax (parse) errors in line 30 and 40. (not sure if that's exactly where they are though, since it's syntax).

check it out, and feel free to post any hints.

thanks,

Code:

#include <stdio.h>
main()
{
float parallel_resis(float,float,float);
float series_resis(float,float,float);
float tot_par,tot_ser,r1,r2,r3;
printf("Please input the values for resistance in ohms\n\n");
printf("Value for resistance 1:\n");
scanf("%f",r1);
printf("Value for resistance 2:\n");
scanf("%f",r2);
printf("Value for resistance 3:\n");
scanf("%f",r3);
if ((r1<0)||(r2<0)||(r3<0))
{
printf("Values cannot be negative");
getch();
}
else
{
tot_par=parallel_resis(r1,r2,r3);
tot_ser=series_resis(r1,r2,r3);
printf("The equivalent resistance for values of %f, %f, and %f are:\n\n",r1,r2,r3);
printf("For series wiring: %.3f\n", tot_ser);
printf("For parrallel wiring: %.3f\n", tot_par);
return 0;
}
float parallel_resis(float r1, float r2, float r3)
float series_resis(float r1, float r2, float r3)
{
float tot_ser;
float tot_par;
tot_ser=(r1+r2+r3);
tot_par=(1/(1/r1 + 1/r2 + 1/r3));
return (tot_ser);
return (tot_par);
}
}