//Example No.2.4; //Page No.60; clc;clear; E1 = 3.2;//Value of higher energy level E1 -[eV]. E2 = 1.6;//Value of lower energy level E2 -[eV]. E = (E1-E2);//Energy difference. printf("\nThe energy difference is %.1f eV", E); h = 6.626*10^(-34);//Planck's constant c = 3*10^(8);//Velocity of light. E = 1.6*1.6*10^(-19); w = ((h*c)/(E)); printf("\nThe wavelength of the photon is %3.3e m", w);