Parallel Resistance
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int i,j,n;
float a=1.0,b,c=0.0,sum=0.0,temp=0.0;
printf("\tIt's a programe of 1/Ri=1/R1+1/R2+1/R3+.......+1/Rn\n");
printf("\n\nEnter the number of registors in parallel: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=1;j++)
printf("\n\tEnter the valuse of %d registor:",i);
scanf("%f",&b);
c=a/b;
sum+=c;
}
temp=a/sum;
printf("\n\nThe total registance(1/Ri) of parallel is: %0.3f\n ",sum);
printf("\nThe total registance(Ri) of parallel is: %0.3f\n\n ",temp);
}
#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
int i,j,n;
float a=1.0,b,c=0.0,sum=0.0,temp=0.0;
printf("\tIt's a programe of 1/Ri=1/R1+1/R2+1/R3+.......+1/Rn\n");
printf("\n\nEnter the number of registors in parallel: ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=1;j++)
printf("\n\tEnter the valuse of %d registor:",i);
scanf("%f",&b);
c=a/b;
sum+=c;
}
temp=a/sum;
printf("\n\nThe total registance(1/Ri) of parallel is: %0.3f\n ",sum);
printf("\nThe total registance(Ri) of parallel is: %0.3f\n\n ",temp);
}
#include
ReplyDeletemain()
{
int i,j,n;
float a=1.0,p=0.0,q=0.0,r,sum=0.0;
printf("\tIT'S A PROGRAM OF 1/Ri=1/R1+1/R2+1/R3......+1/Rn\n\n");
printf("How many series you use:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=1;j++)
printf("\n\tEnter the regestence:");
scanf("%f",&r);
p=(a/r);
sum+=p;
}
q=a/sum;
printf("\nTotel resestence value(Ri) is:%f\n",q);
}