blob: 0a1d8c68f1d642bca7a33781575a29b0d8434aa4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 3, Example 3.2
clc
//Initialisation'
v1=3 //voltage
v3=3 //voltage
e=12 //voltage
//Calculation
v2=v1+v3-e //voltage
//Results
printf("Voltage, V = %d V",v2)
|