summaryrefslogtreecommitdiff
path: root/659/CH8/EX8.2/exm8_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '659/CH8/EX8.2/exm8_2.sce')
-rwxr-xr-x659/CH8/EX8.2/exm8_2.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/659/CH8/EX8.2/exm8_2.sce b/659/CH8/EX8.2/exm8_2.sce
new file mode 100755
index 000000000..2f824cc6d
--- /dev/null
+++ b/659/CH8/EX8.2/exm8_2.sce
@@ -0,0 +1,7 @@
+// Example 8.2
+//Write a program to read a line of text containing a series of-
+//words from the terminal.
+
+disp("Enter text. Press <Return> at end");
+line=read(%io(1),1,1,'(a)'); //Read a line
+disp(line); //Display line