#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();
}
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
Labels:
C Assignments
Subscribe to:
Post Comments (Atom)
If you face any Problem in viewing code such as Incomplete "For Loops" or "Incorrect greater than or smaller" than equal to signs then please collect from My Web Site CLICK HERE
More Useful Topics... |
|
History Of C..
In the beginning was Charles Babbage and his Analytical Engine, a machine
he built in 1822 that could be programmed to carry out different computations.
Move forward more than 100 years, where the U.S. government in
1942 used concepts from Babbage’s engine to create the ENIAC, the first
modern computer.
Meanwhile, over at the AT&T Bell Labs, in 1972 Dennis Ritchie was working
with two languages: B (for Bell) and BCPL (Basic Combined Programming
Language). Inspired by Pascal, Mr. Ritchie developed the C programming
language.
he built in 1822 that could be programmed to carry out different computations.
Move forward more than 100 years, where the U.S. government in
1942 used concepts from Babbage’s engine to create the ENIAC, the first
modern computer.
Meanwhile, over at the AT&T Bell Labs, in 1972 Dennis Ritchie was working
with two languages: B (for Bell) and BCPL (Basic Combined Programming
Language). Inspired by Pascal, Mr. Ritchie developed the C programming
language.
My 1st Program...
#include
#include
void main ()
{
clrscr ();
printf ("\n\n\n\n");
printf ("\t\t\t\"Life is Good...\"\n");
printf ("\t\t\t********************************");
getch ();
}
Next Step...
#include
#include
void main ()
{
clrscr ();
printf ("\n\n\n\n\n\n\n\n");
printf ("\t\t\t --------------------------- \n\n");
printf ("\t\t\t | IGCT, Info Computers, INDIA | \n\n");
printf ("\t\t\t --------------------------- ");
}
I want a 'C' program to convert infix form into prefix and postfix form....
ReplyDeleteNice! 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.
ReplyDeletehttp://ccodechamp.com