summaryrefslogtreecommitdiff
path: root/3769/CH9/EX9.41/Ex9_41.sce
blob: 002cadcbc959b69a87555c9c1821bd365f288fab (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
V=2                               //V
R=2000.0                           //ohm

//Calculation
I=V/R
pd=I*R

//Result
printf("\n Reading of ammeter is %0.3f mA \nReading of voltmeter is %0.3f V",I*10**3,pd)