clear; clc; printf("\nEx3.20\n"); //page no.-135 //given a=10^-10;........//width of box in m h=6.625*10^-34;....//planck's constant in J-s m=9.1*10^-31;......//mass of electron in kg n=2;..............//quantum no. e=1.6*10^-19;.....//charge p=n*h/2*a.........//momentum in Kg*m/s printf("\nmomentum is 6.625*10^-24 Kg*m/s\n"); E=(n^2*h^2)/(8*m*a^2*e).....//energy in eV printf("\nenergy is 150.8 eV\n");