L = 1; //length of the copper wire in meters A = 1 * 10^-4; // cross sectional area of the wire in meter square rho = 1.724 * 10^-8; // resistivity of copper in ohm meter R = rho*L / A; // resistance of the wire in ohm disp(R, "resistance of the wire (in ohms)=")