blob: ec2ebb749b08abd7ab9e7b73f92cbb536203093c (
plain)
1
2
3
4
5
6
7
|
//Example 1_9 page no:12
clc
I=(100-40)/40//By applying ohms law to the given circuit
R=30//reisistance in ohm
V=I*R
disp(I,"Current across 30ohm resistor(in A):")
disp(V,"Voltage across 30ohm resistor(in V):")
|