summaryrefslogtreecommitdiff
path: root/1553/CH1/EX1.17/1Ex17.sce
blob: 29911283b03620d70fe42693caf84422c394d52c (plain)
1
2
3
4
5
6
7
8
9
//chapter 1 Ex 17

clc;
clear;
close;
dividend=2010;
divisor=19;
mod=modulo(dividend,divisor);  //remainder
printf("The least number to be added is %d",(divisor-mod));