Sunday, September 23, 2012

Program 3 Electric Circuit


#include<stdio.h>
#include<conio.h>
void main()
{
float l,r,feq,c;
clrscr();
printf("enter value of L:");
scanf("%f",&l);
printf("enter value of R:");
scanf("%f",&r);

for(c=0.001;c<=0.01;c++)
{
feq=(1/(l*c))-((r*r)/(4*c*c));
}

printf("frequncy is = %f",feq);
getch();
}

No comments:

Post a Comment