//chapter1 //example1.4 //page12 I=6 // mA R=2 // kilo ohm V=I*R // by ohm law printf("voltage of voltage source = %.3f V",V) // this voltage source when connected in series with 2000 ohm gives equivalent voltage source for the given constant current source