summaryrefslogtreecommitdiff
path: root/3769/CH24/EX24.9/Ex24_9.sce
blob: decfd7bb8bef771a858cfae565c79ff12dd87a0f (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
n=2.0
n1=3.0

//Calculation
E2=-13.6/n**2
E3=-13.6/n1**2

//Result
printf("\n Energies of two energy level is %0.3f ev and %0.2f ev",E2,E3)