summaryrefslogtreecommitdiff
path: root/1553/CH1/EX1.30/1Ex30.sce
blob: a1d5968184f3e7ea4655f48528d6d729604f8ec8 (plain)
1
2
3
4
5
6
7
8
9
10
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);