summaryrefslogtreecommitdiff
path: root/911/CH2/EX2.2
diff options
context:
space:
mode:
Diffstat (limited to '911/CH2/EX2.2')
-rw-r--r--911/CH2/EX2.2/ex_2_2.pdfbin0 -> 109810 bytes
-rw-r--r--911/CH2/EX2.2/ex_2_2.sce13
2 files changed, 13 insertions, 0 deletions
diff --git a/911/CH2/EX2.2/ex_2_2.pdf b/911/CH2/EX2.2/ex_2_2.pdf
new file mode 100644
index 000000000..9c69a68c6
--- /dev/null
+++ b/911/CH2/EX2.2/ex_2_2.pdf
Binary files differ
diff --git a/911/CH2/EX2.2/ex_2_2.sce b/911/CH2/EX2.2/ex_2_2.sce
new file mode 100644
index 000000000..2016599fe
--- /dev/null
+++ b/911/CH2/EX2.2/ex_2_2.sce
@@ -0,0 +1,13 @@
+//example 2.2//
+clc
+//clears the screen//
+clear
+//clears all existing variables//
+a=14276;
+b=18490;
+c=a+b;
+if c<32767 then
+ disp('Yes 16 bit arithmetic operation can be used to add given numbers')
+ else
+ disp('NO 16 bit arithmetic operation can be used to add given numbers')
+end \ No newline at end of file