this is the code i wrote for my school program my question is why wont the printf show the float value it comes up as inf ( which i believe is infinity?) i know my values previously are all int's which if why i put float in () anyways help is appreciated
cheerzx
#include <stdio.h>
#include <conio.h>
int main()
{
int c1, c2, c3, parallelCap;
float seriesCap;
printf("please enter the value of the first resistor:");
scanf(" %d", &c1);
printf("please enter the value of the second rstr:");
scanf(" %d", &c2);
printf("please enter the value of the third resistor:");
scanf(" %d", &c3);
parallelCap = c1 + c2 + c3;
seriesCap = (float)1/(1/c1 + 1/c2 + 1/c3);
printf("the parallel capacitance is: %d the series
capacitance is: %f/n ", parallelCap, seriesCap);
getch();
return 0;
}