summaryrefslogtreecommitdiff
path: root/662/CH4/EX4.24
diff options
context:
space:
mode:
Diffstat (limited to '662/CH4/EX4.24')
-rwxr-xr-x662/CH4/EX4.24/ex4_24.JPGbin0 -> 19835 bytes
-rwxr-xr-x662/CH4/EX4.24/ex4_24.sce5
2 files changed, 5 insertions, 0 deletions
diff --git a/662/CH4/EX4.24/ex4_24.JPG b/662/CH4/EX4.24/ex4_24.JPG
new file mode 100755
index 000000000..acdcfc860
--- /dev/null
+++ b/662/CH4/EX4.24/ex4_24.JPG
Binary files differ
diff --git a/662/CH4/EX4.24/ex4_24.sce b/662/CH4/EX4.24/ex4_24.sce
new file mode 100755
index 000000000..151ca5dd0
--- /dev/null
+++ b/662/CH4/EX4.24/ex4_24.sce
@@ -0,0 +1,5 @@
+ //Example 4.24
+//Use of field width and precision specification with string output
+
+line = input("Enter string(upto 12 characters): ", "string");
+printf("%10s % 15s %15.5s %.5s", line, line, line, line); \ No newline at end of file