summaryrefslogtreecommitdiff
path: root/662/CH4/EX4.10
diff options
context:
space:
mode:
Diffstat (limited to '662/CH4/EX4.10')
-rwxr-xr-x662/CH4/EX4.10/ex4_10.JPGbin0 -> 23419 bytes
-rwxr-xr-x662/CH4/EX4.10/ex4_10.sce12
2 files changed, 12 insertions, 0 deletions
diff --git a/662/CH4/EX4.10/ex4_10.JPG b/662/CH4/EX4.10/ex4_10.JPG
new file mode 100755
index 000000000..e42ce39ff
--- /dev/null
+++ b/662/CH4/EX4.10/ex4_10.JPG
Binary files differ
diff --git a/662/CH4/EX4.10/ex4_10.sce b/662/CH4/EX4.10/ex4_10.sce
new file mode 100755
index 000000000..3c250582a
--- /dev/null
+++ b/662/CH4/EX4.10/ex4_10.sce
@@ -0,0 +1,12 @@
+ //Example 4.10
+ clc
+//i=integer type
+//x=float type
+//c=character type
+printf("Enter values for i , x and c in respective order");
+printf("\n [Enter values in single line seperated by spaces]) ");
+
+[n,i, x,c]=mscanf("%3d %5f %c");
+disp(i,"i = ");
+disp(x,"x = ");
+disp(c," c = ");