blob: 33bdeac5b238a6e245f5edd6e3226037bda17634 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Given that
l = 1.2*10^-2 //in meter
b = 1.2*10^-2 //in meter
h = 15*10^-2 //in meter
resistivityIron = 9.68*10^-8 //in ohm.m
//Sample Problem 27-4(1)
printf("**Sample Problem 27-4(1)**\n")
R1 = resistivityIron*h/(l*b)
printf("The resistance of the block is equal to %eOhm\n", R1)
//Sample Problem 27-4(2)
printf("\n**Sample Problem 27-4(2)**\n")
R2 = resistivityIron*l/(b*h)
printf("The resistance of the block is equal to %eOhm", R2)
|