blob: 1bc0d6d00c98d7022e89143c77e1e6a3ca9b0d10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clear
//Given
m=0.45 //Kg
R=0.0014 //ohm
a=1.78*10**-8 //ohm
d=8.93*10**3 //Kg/m**3
//Calculation
//
l=sqrt(R*m/(a*d))
r=sqrt(m/(%pi*d*1.99))
//Result
printf("\n The value of length is %0.2f m",l)
printf("\n The value of radius is %0.2f mm",r*10**3)
|