summaryrefslogtreecommitdiff
path: root/1034/CH2/EX2.2/example2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1034/CH2/EX2.2/example2.sce')
-rwxr-xr-x1034/CH2/EX2.2/example2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1034/CH2/EX2.2/example2.sce b/1034/CH2/EX2.2/example2.sce
new file mode 100755
index 000000000..a894a743b
--- /dev/null
+++ b/1034/CH2/EX2.2/example2.sce
@@ -0,0 +1,13 @@
+clear;
+clc;
+printf("\n Example 2.2\n");
+// String insertion.
+s="auto";...............//1st string or character array.
+x="mobile";...............//2nd string or character array.
+z=s+x;..........//concatenation of 2 strings.
+printf("\tstring s=");
+disp(s);
+printf("\tstring x=");
+disp(x);
+printf("\tconcatenated string z=");
+disp(z);........//dispalying concatenated string. \ No newline at end of file