C Program to Find equivalent Resistance of Parallel Combination of Resistive Circuits

C Program to Find equivalent Resistance of Parallel Combination of Resistive Circuits.


C Program to Find equivalent Resistance of Parallel Combination of Resistive Circuits Images-Pics-Pictures-Photos-Snaps-Snapshots-C program for Electrical Circuits-C program for Equivalent Resistance of Circuits-C Program to Find equivalent Resistance of Series Combination of Resistive Circuits.

Resistance is the ratio of voltage to current. Resistance is also inversly proportional to the current. The Unit of Resistance is ohm. Resistors can be mainly connected in 2 ways in a circuit. They are

Resistors in Series

Resistors in Parallel


In case of parallel circuits the current is equally divided in the circuit, but the voltage across each resistors are the same. Here the equivalent resistance is given by the total resistance of a set of resistors in parallel is found by adding up the reciprocals of the resistance values, and then taking the reciprocal of the total.


Req(1/R) = (1/R1)+(1/R2)+(1/R3)+-----(1/Rn)


Take an example that there are 2 resistors in the circuit. We have to find out the equivalent Resistance.

Equivalent Resistance(1/R) = (1/R1)+(1/R2)


Take R1=8, R2=8, R3=4. Then Equivalent Resistance is given by


(1/R) = (1/8)+(1/8)+(1/4)
(1/R) = 3 ohms


--------------------------------------------------------------------------------------------------------------------------

#include<stdio.h>
int main( )
{
    int r[10], num, i, Rs = 0;
    printf("Enter the number of Resistances  :  ");
    scanf("%d", &num);
    printf("Enter value of Each Resistance  :  ");
    for(i=0; i<num; i++)
{
      printf("R%d  :  ", i+1);
      scanf("%d",  &r[i]);
}
for(i=0; i<num; i++)
{
   Rs = Rs + r[i];
}
printf(" Equivalent Series Resistance  :  %d  kohm",  Rs);
return (0);
}

--------------------------------------------------------------------------------------------------------------------------

Output

--------------------------------------------------------------------------------------------------------------------------

Enter the number of Resistances : 3
Enter the value of Each Resistance :
R1 : 4
R2 : 2
R3 : 3
Equivalent Parallel Resistance : 0.923077 kohm  



EmoticonEmoticon