summaryrefslogtreecommitdiff
path: root/3718/CH1/EX1.21/Ex1_21.sce
blob: 57895a4f1ecfeeafb814b716a29ca95bf59c7963 (plain)
1
2
3
4
5
6
7
8
9
10
//Chapter 1: Structure and Bonding
//Problem: 21
clc;

// Solution
v_n = 2 * 5             // number of valence e- in nitrogen
v_co = 4 + 6            // number of valence e- in CO

mprintf("The Number of valence electrons in N2 is %d\n", v_n)
mprintf(" The Number of valence electrons in CO is %d", v_co)