diff options
Diffstat (limited to '911/CH9/EX9.3.a/ex_9_3.sce')
-rw-r--r-- | 911/CH9/EX9.3.a/ex_9_3.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/911/CH9/EX9.3.a/ex_9_3.sce b/911/CH9/EX9.3.a/ex_9_3.sce new file mode 100644 index 000000000..a038ffc93 --- /dev/null +++ b/911/CH9/EX9.3.a/ex_9_3.sce @@ -0,0 +1,16 @@ +//example 9.3(a)//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+// ff = input ( ' Enter the no of flip-flops ' ) ;
+ff =4;
+//given input//
+k=2^ff;
+if(k ==2) then // output d i s p l a y
+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 ' ,k);
+printf ( 'We can thus construct any counter that has a modulus between 2 and %d' ,k )
+disp('in our given question we are given count till 1011 so, it will be mod 12 counter')
+end
\ No newline at end of file |