clc clear //Input data W=1.9//Work function in eV E=3//Energy of the emitted photons in eV //Calculations V=(E-W)//Stopping potential in V //Output printf('The stopping potential is %3.1f V',V)