diff options
Diffstat (limited to '45/CH10/EX10.8')
-rwxr-xr-x | 45/CH10/EX10.8/example_10_8.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/45/CH10/EX10.8/example_10_8.sce b/45/CH10/EX10.8/example_10_8.sce new file mode 100755 index 000000000..6da38fcd5 --- /dev/null +++ b/45/CH10/EX10.8/example_10_8.sce @@ -0,0 +1,12 @@ +//example 10.8 +clc; +clear; +//ff = input('Enter the no of flip-flops :'); +ff=4; //given input +k=2^ff; +if(k==2) then //output display + printf('With given flipflop we can only count 2, we can have a modulus 2 counter'); + else +printf('With given number of flip-flops the counter will have a natural count of %d\n',k); +printf('We can thus construct any counter that has a modulus between %d and 2',k ) +end;
\ No newline at end of file |