summaryrefslogtreecommitdiff
path: root/24/CH42/EX42.2/Example42_2.sce
blob: 907971488ec2d5b8a37e639c0645bc63d4d6b605 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Given that
n = 2
V = 2*10^-6  //in m^3
density = 1.738*10^3  //in kg/m^3
M = 24.312*10^-3  //in kg/m^3
Na = 6.023*10^23

//Sample Problem 42-2
printf("**Sample Problem 42-2**\n")
num = density*V*Na/M
electrons = n*num
printf("The number of electrons is equal to %e", electrons)