blob: 1b849ed7409d0dc87be409225782b5acf48107f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Chapter 1, Example 1.2
clc
//Initialisation
i1=10 //current in ampere
i3=3 //current in ampere
//Calculation
i2=i1-i3 //current in ampere
//Results
printf("Current, I = %.1f A",i2)
|