summaryrefslogtreecommitdiff
path: root/1553/CH1/EX1.16/1Ex16.sce
blob: 032ddb1b4dce34cd526e72b601ed89e5923d3c68 (plain)
1
2
3
4
5
6
7
8
9
//chapter 1 Ex 16

clc;
clear;
close;
dividend=1672;
divisor=17;
leastN=modulo(dividend,divisor);   //remainder
printf("The least number to be subtracted is %d",leastN);