summaryrefslogtreecommitdiff
path: root/3648/CH17/EX17.2/Ex17_2.sce
blob: 0804d4c318c2c423254b4be951045cb83921f6dc (plain)
1
2
3
4
5
6
7
8
//Example 17_2
clc();
clear;
//To find the resistance in bulb
v=1.55     //Units in V
i=0.08         //Units in A
r=v/i    //Units in Ohms
printf("The resistance in bulb is=%.1f Ohms",r)