blob: 7150b85429532484b8de5376259d4ab06dd302a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Chapter 19, Example 19.1
clc
//Initialisation
r3=1.222*10**3 //resistance in ohm
r4=1*10**3 //resistance in ohm
v1=0.7 //voltage
vz=4.7
//Calculation
vo=(vz+v1)*((r3+r4)/r4) //Output Voltage
//Results
printf("Output Voltage Vo = %d V",round(vo))
|