1 2 3 4 5 6 7 8 9 10 11
//example 11 clear vbe=0.65;//volt colres=2*10^3;//ohm voltag=10;//volt i1=voltag/10; q=(1.65-vbe)/(1*10^3); disp("current = "+string((q))+"ampere");