// Additional solved examples , Example 12 , pg 336 E1=2*10^4 //energy emitted per second(in J) n=1000*10^3 //frequency(in Hz) h=6.625*10^-34 //plancks constant(in J s) E=h*n//energy carried by 1 photon(in J) N=E1/E//number of photons emitted per second printf("number of photons emitted per second\n") disp(N)