summaryrefslogtreecommitdiff
path: root/3648/CH22/EX22.2/Ex22_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH22/EX22.2/Ex22_2.sce')
-rw-r--r--3648/CH22/EX22.2/Ex22_2.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/3648/CH22/EX22.2/Ex22_2.sce b/3648/CH22/EX22.2/Ex22_2.sce
new file mode 100644
index 000000000..51648e480
--- /dev/null
+++ b/3648/CH22/EX22.2/Ex22_2.sce
@@ -0,0 +1,8 @@
+//Example 22_2
+clc();
+clear;
+//To find the location of the image
+d1=10 //units in cm
+d2=5 //units in cm
+i=(d1*d2)/(d2-d1) //Units in cm
+printf("The position of the image is i=%d cm",i)