From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 182/CH3/EX3.3/example3_3.sce | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '182/CH3/EX3.3') diff --git a/182/CH3/EX3.3/example3_3.sce b/182/CH3/EX3.3/example3_3.sce index 3a84519b6..468477f07 100755 --- a/182/CH3/EX3.3/example3_3.sce +++ b/182/CH3/EX3.3/example3_3.sce @@ -1,4 +1,3 @@ - //example 3-3 in page 41 clc; //Given Data @@ -9,7 +8,7 @@ IM=0.1e-3;//FSD(IM)=0.1 mA Rs=1;//shunt resistance in ohm //calculation n=2;//initialisation -while n>0.25, +while n>0.25, n=n/2; Im=IM*n; Vm=Im*Rm;// Meter voltage in volts @@ -17,4 +16,4 @@ while n>0.25, I=Im+Is;//toatal current through the ammeter I=Im+Is in ampere m=m+1; printf("(%c) current through the ammeter at %.2f FSD=%.1f mA\n",A(m),n,I*1000); -end +end \ No newline at end of file -- cgit