clc; v=120; //potential diff in volt i=25; //current in Ampere r=v/i; //Ohm's law disp(r,"Resistance in ohm = "); //displaying result