summaryrefslogtreecommitdiff
path: root/Working_Examples/293/CH2/EX2.1.a/eg2_1a.sce
blob: 993d36fbd986b8b6c13e2849261c660abb3f1489 (plain)
1
2
3
4
5
6
V = 1; // voltage supply 
R = 10; // resistance in ohms 
I = V/R //current flowing through R
disp("a)")
disp(V,"voltage across the resistor (in volts)=")
disp(I,"current flowing through the resistor (in amps) =")