diff options
Diffstat (limited to '911/CH9/EX9.1/ex_9_1.sce')
-rw-r--r-- | 911/CH9/EX9.1/ex_9_1.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/911/CH9/EX9.1/ex_9_1.sce b/911/CH9/EX9.1/ex_9_1.sce new file mode 100644 index 000000000..3b77ad62d --- /dev/null +++ b/911/CH9/EX9.1/ex_9_1.sce @@ -0,0 +1,12 @@ +//exmaple 9.1//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+a=bin2dec('0000')
+//given initial state//
+c=bin2dec('0011')
+//given final state//
+n=input('Enter the loop no = ')
+d=(16*(n-1))+c-a;
+disp(d,'No of negative clock cycles occured till now= ')
\ No newline at end of file |