C Program To find equivalent capacitance of parallel combination of capacitive circuit

July 31, 2024 No Comments » Hits : 140





Program : To find equivalent capacitance of Parallel combination of capacitive circuit

#include<stdio.h>
#include<conio.h>
int main()
{
float c[10],num,Cp=0;
int i;
clrscr();
printf("Enter the number of Capacitors : ");
scanf("%f",&num);
printf("\nEnter Value of Each Capacitor : \n");
for(i=0;i<num;i++)
   {
   printf("\nC%d : ",i+1);
   scanf("%f",&c[i]);
   }
for(i=0;i<num;i++)
   {
   Cp = Cp + c[i];
   }
printf("\nEquivalent Parallel Capacitance : %f mFarad",Cp);
getch();
}

Output :

Enter the number of Capacitors : 3
Enter Value of Each Capacitor :
C1 : 1.2
C2 : 1.3
C3 : 1.4
Equivalent Parallel Capacitance : 3.900000 mFarad

Incoming search terms: