clear ; clc; // Example 8.1 printf('Example 8.1\n\n'); printf('Page No. 222\n\n'); // given V = 240;// Voltage in Volts I = 8;// Current in Amps //By ohm's law-> V = I*R R = V/I;// In ohms printf('The resistance of the given circuit is %.0f ohms',R)