diff options
Diffstat (limited to '662/CH4/EX4.24')
-rwxr-xr-x | 662/CH4/EX4.24/ex4_24.JPG | bin | 0 -> 19835 bytes | |||
-rwxr-xr-x | 662/CH4/EX4.24/ex4_24.sce | 5 |
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 Binary files differnew file mode 100755 index 000000000..acdcfc860 --- /dev/null +++ b/662/CH4/EX4.24/ex4_24.JPG 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 |