From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 608/CH2/EX2.05/2_05.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 608/CH2/EX2.05/2_05.sce (limited to '608/CH2/EX2.05') diff --git a/608/CH2/EX2.05/2_05.sce b/608/CH2/EX2.05/2_05.sce new file mode 100755 index 000000000..482ea9946 --- /dev/null +++ b/608/CH2/EX2.05/2_05.sce @@ -0,0 +1,11 @@ +//Problem 2.05: A coil has a current of 50 mA flowing through it when the applied voltage is 12 V. What is the resistance of the coil? + +//initializing the variables: +I = 0.050; // in Ampere +V = 12; // in Volts + +//calculation: +R = V/I + +printf("\n\nResult\n\n") +printf("\nResistance(R): %.0f Ohms\n",R) \ No newline at end of file -- cgit