% Practical 2c : sub2p2c.m
% Subject 2:2.7,2.10,2.11,2.11.1,2.14(;)
a=10;b=int8(10);    
c=pi;d=single(10);
whos a b c d
format short
disp(a);disp(b);disp(c);disp(d);
format long
disp(a);disp(b);disp(c);disp(d);
clear
format hex
try
disp(c)
catch
 fprintf('Var c doesnt exist; recreating it\n')
end
a=10;b=int8(10);c=pi;d=single(10);
disp(a); disp(b); disp(c);format short;
a=10; b=int8(10); c=1e6; d=1e-6;
isinteger(a)
isinteger(b)
isreal(a)
isreal(b)
isreal(c)
clear;clc;format short
3+4
3*5
4/5
4\5
4^3
5/0
0/0
Inf/Inf
0*Inf
