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 assignment to find equivalent resistance in C language | Program to find equivalent resistance when value of Resistance is given




#include
#include

int main()
{
int r[10],num,i,Rs=0;
clrscr();

printf("Enter the number of Resistances : ");
scanf("%d",&num);

printf("\nEnter Value of Each Resistance : \n");
for(i=0;i<num;i++)
{
printf("\nR%d : ",i+1);
scanf("%d",&r[i]);
}

for(i=0;i<num;i++)
{
Rs = Rs + r[i];
}

printf("\nEquivalent Series Resistance : %d Kohm",Rs);

getch();
}


2 comments:

  1. I want a 'C' program to convert infix form into prefix and postfix form....

    ReplyDelete
  2. Nice! You can also try C code champ for several C programs, codes and tutorials. C codechamp contains a great list of C programs and tutorials.
    http://ccodechamp.com

    ReplyDelete