summaryrefslogtreecommitdiff
path: root/1316/CH1/EX1.16/example1_16.sce
blob: c2a991dbccbf7ee8ceb9a587d226eb1f598f737d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Chapter 1
//Example 1.16
//Page 40

clear;
clc;

R = 12.5;
I = 2.21;
Scale = 10;
Acc = 0.2;

//Finding the voltage across resistor
printf("The voltage across resistor is %.1f V",I*R);