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

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



C Program to Find equivalent Resistance of Series Combination of Resistive Circuits Images-Pics-Pictures-Photos-Snaps-C program for Electrical Circuits-C program for Equivalent Resistance of Circuits-C Program to Find equivalent Resistance of Parallel 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 series combination of resistance, the resistance are connected in series.A series circuit is A series circuit is a circuit in which resistors are arranges in a chain, so the current has only one path to take. but the voltage through the resistors varies. The total resistance of the circuit is found by simply adding up the resistance values of the individual. 

Equivalent Resistance(R) = R1+R2+R3+-----------Rn

Consider an example if there are 2 resistors in the circuit, we have to find out the equivalent resistance.

Equivalent Resistance(R) = R1+R2

Take R1= 10, R2=5. Then equivalent resistance is given by

R = R1+R2
R = 10+5
R = 15 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 : 5
R2 : 4
R3 : 3
Equivalent Series Resistance : 12 Kohm



EmoticonEmoticon