blob: 891732901b38afc8016c8a570f0953b5f50bab49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
////
//Variable Declaration
x = 6 //Number of electrons
n = 2 //Number of states
//Calculation
P = factorial(x)/(factorial(n)*factorial(x-n))
//Results
printf("\n Total number of quantum states are %3d",P)
|