-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_character.m
40 lines (39 loc) · 1.68 KB
/
add_character.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
%--------------------------------------------------------------
% Welcome to Getscriptall
%--------------------------------------------------------------
% SIMPLE ADDITION OF INTEGER PROGRAM:
%--------------------------------------------------------------
%Addition of one interger number and a character
%--------------------------------------------------------------
a='a';%take ASCII Value for add
b=5;
s4=a+b;
disp(s4);
%--------------------------------------------------------------
%--------------------------------------------------------------
%Addition of one integer with characters
%--------------------------------------------------------------
a='abc';%take ASCII Value for add
b=5;
s5=a+b;
disp(s5);
%--------------------------------------------------------------
%--------------------------------------------------------------
%Addition of two characters
%--------------------------------------------------------------
a='abc';%take ASCII Value for add
b='a';%take ASCII Value for add (array size one or same size)
s1=a+b;
disp(s1);
%--------------------------------------------------------------
%--------------------------------------------------------------
%Addition of two characters
%--------------------------------------------------------------
a='abc';%take ASCII Value for add
b='dfg';%take ASCII Value for add (array size one or same size)
s1=a+b;
disp(s1);
%--------------------------------------------------------------
%--------------------------------------------------------------
%%%%%%%%%%%-------------------$$$$$$$$>>>>> BY Getscriptall <<<<$$$$$$$$$-----------------%%%%%%%%%%%%%%
% @@@ for any query contact: info.getscriptall@gmail.com