diff options
Diffstat (limited to '1553/CH1/EX1.17/1Ex17.sce')
-rw-r--r-- | 1553/CH1/EX1.17/1Ex17.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH1/EX1.17/1Ex17.sce b/1553/CH1/EX1.17/1Ex17.sce new file mode 100644 index 000000000..29911283b --- /dev/null +++ b/1553/CH1/EX1.17/1Ex17.sce @@ -0,0 +1,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));
|