blob: c0c983c9806fe118e7451d7b7179a49aa3b9cc07 (
plain)
1
2
3
4
5
6
7
8
|
clear
//
//the eqns obtained are converted to matrix form for solving using cramer's rule values are found
i1=5.224
i2=0.7463
i3=3.28
v=(i1-i3)*3
printf("\n voltage across 3 ohm resistor is= %0.1f V",v)
|