summaryrefslogtreecommitdiff
path: root/1445/CH1/EX1.44/ch1_ex_44.sce
blob: dd1019bb53a18dbd66e3dd9faaa0b5b6399c60d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS 
//Example 44

disp("CHAPTER 1");
disp("EXAMPLE 44");

//VARIABLE INITIALIZATION
I=40;                            //in Amperes
r=5;                             //in Ohms

//SOLUTION
v=I*r;
disp(sprintf("The voltage required is %d V",v));

//END