1 2 3 4 5 6 7 8
//Example 9.12 page no 274 clear clc R=10*10^3 //Ω f=100 //Hz C=(0.1/(2*%pi*f*R))*10^9 //Capicitor printf("\n The value of C=%0.3f nF",C)