blob: d68b4a593a6b6e2af5d4b78057e193104adbed9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
clear
//Input data
V=10//voltage in V from fig.12.7 on page no.175
R=10//Resistance in ohms from fig.12.7 on page no.175
//Calculations
I=(V/R)//Current in A
//Output
printf('Current in the circuit shown in fig.12.7 is %i A',I)
|