summaryrefslogtreecommitdiff
path: root/659/CH8/EX8.6/exm8_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '659/CH8/EX8.6/exm8_6.sce')
-rwxr-xr-x659/CH8/EX8.6/exm8_6.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/659/CH8/EX8.6/exm8_6.sce b/659/CH8/EX8.6/exm8_6.sce
new file mode 100755
index 000000000..11c0e0a72
--- /dev/null
+++ b/659/CH8/EX8.6/exm8_6.sce
@@ -0,0 +1,12 @@
+// Example 8.6
+//Write a program which would print the alphabet set a to z A to Z in decimal-
+//character form.
+
+for c=65:122
+ if(c>90&c<97) then
+ continue; //Terminate current iteration
+ end
+ c1=ascii(c); //Convert ascii value to character
+ printf("|%4d - %c\",c,c1);
+end
+printf("|\n") \ No newline at end of file