blob: 91d6c4a92188a50fec36ff464860c3eee4483972 (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 17_3
clc();
clear;
//To find the resistance in wire
row=1.7*10^-8 //Units in Ohm meter
l=40 //Units in meters
a=0.0331*10^-4 //Units in meters^2
r=(row*l)/a //Units in Ohms
printf("The resistance in wire is=%.3f Ohms",r)
|