blob: 4a084816e267c6a2a1a92ad30ac14bd5946012eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clear
//Initialization
i=5 //current in ampere
l=0.628 //circumference
//Calculation
h=i/l //magnetic field strength
//Results
printf("\n Magnetic Field Strength, H = %.2f A/m",h)
|