1 2 3 4 5 6 7
//Example 1_4 page no:5 clc clear R=10;//Resistance in ohm V=12;//Voltage in volt I=V/R; disp(I,"current flowing through resistor(in A):")