blob: 2016599fe8e30a22a461512517074502c81f702f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|