diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /659/CH4/EX4.4 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '659/CH4/EX4.4')
-rwxr-xr-x | 659/CH4/EX4.4/exm4_4.sce | 24 | ||||
-rwxr-xr-x | 659/CH4/EX4.4/exm4_4_output.PNG | bin | 0 -> 16612 bytes |
2 files changed, 24 insertions, 0 deletions
diff --git a/659/CH4/EX4.4/exm4_4.sce b/659/CH4/EX4.4/exm4_4.sce new file mode 100755 index 000000000..e06536a2d --- /dev/null +++ b/659/CH4/EX4.4/exm4_4.sce @@ -0,0 +1,24 @@ +// Example 4.4
+// The program illustrates the various options for reading
+//integers are experimented in this program
+
+
+printf("Enter three integer numbers\n");
+[n,a,b,c]=mscanf("%d %*d %d");
+disp(c,b,a);
+printf("Enter two 4-digit numbers\n");
+[n,x,y]=mscanf("%2d %4d");
+printf('%d %d\n',x,y);
+
+printf("Enter two integers\n");
+[n,a,x]=mscanf("%d %d");
+printf('%d %d\n',a,x);
+
+printf("Enter a nine digit number\n");
+[n,p,q,r]=mscanf("%3d %4d %3d");
+printf('%d %d %d\n',p,q,r);
+
+printf("Enter two three digit numbers\n");
+[n,x,y]=mscanf("%d %d");
+printf('%d %d \n',x,y);
+
diff --git a/659/CH4/EX4.4/exm4_4_output.PNG b/659/CH4/EX4.4/exm4_4_output.PNG Binary files differnew file mode 100755 index 000000000..e6b87c638 --- /dev/null +++ b/659/CH4/EX4.4/exm4_4_output.PNG |