summaryrefslogtreecommitdiff
path: root/1553/CH1/EX1.30/1Ex30.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH1/EX1.30/1Ex30.sce')
-rw-r--r--1553/CH1/EX1.30/1Ex30.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH1/EX1.30/1Ex30.sce b/1553/CH1/EX1.30/1Ex30.sce
new file mode 100644
index 000000000..a1d596818
--- /dev/null
+++ b/1553/CH1/EX1.30/1Ex30.sce
@@ -0,0 +1,11 @@
+//chapter 1 Ex 30
+
+clc;
+clear;
+close;
+n1=17; n2=80; count=0;
+for i=n1:n2
+ if modulo(i,6)==0 then count=count+1;
+ end
+end
+mprintf("The count of numbers divisible by 6 is %d",count);