summaryrefslogtreecommitdiff
path: root/3860/CH8/EX8.7/Ex8_7.sce
blob: 19384d361fc1715a5ed8ea73e9dccac8f2f9eea5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Example 8.7: Counter that goes through a specific set of sequence.
clc // Clears the console
disp("Displays the count in this particular Sequence.")
disp('0001')
disp('0010')
disp('0100')
disp('0111')
disp('1011')
disp('0000')
disp("0110")
disp("1101")
disp("0101")
disp("1110")
disp("1000")
disp("0011")
disp("1111")
disp("1100")
disp("1010")
disp("1001")
disp('the counter repeats again.')