diff options
Diffstat (limited to '1529/CH2/EX2.5/2_05.sce')
-rwxr-xr-x | 1529/CH2/EX2.5/2_05.sce | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/1529/CH2/EX2.5/2_05.sce b/1529/CH2/EX2.5/2_05.sce new file mode 100755 index 000000000..05b97e545 --- /dev/null +++ b/1529/CH2/EX2.5/2_05.sce @@ -0,0 +1,6 @@ +//Chapter 2, Problem 5
+clc;
+V=12; //voltage
+I=50*10^-3; //current
+R=V/I; //calculating resistance using Ohms law
+printf("Resistance of coil = %d ohms",R);
|