summaryrefslogtreecommitdiff
path: root/620/CH3/EX3.12
diff options
context:
space:
mode:
Diffstat (limited to '620/CH3/EX3.12')
-rw-r--r--620/CH3/EX3.12/example3_12.sce4
-rw-r--r--620/CH3/EX3.12/example3_12.txt3
2 files changed, 7 insertions, 0 deletions
diff --git a/620/CH3/EX3.12/example3_12.sce b/620/CH3/EX3.12/example3_12.sce
new file mode 100644
index 000000000..523b2cf08
--- /dev/null
+++ b/620/CH3/EX3.12/example3_12.sce
@@ -0,0 +1,4 @@
+p1=50;
+p2=30;
+n=p2/p1*100;
+disp("the efficeiency (in %) of the power supply is"); disp(n); \ No newline at end of file
diff --git a/620/CH3/EX3.12/example3_12.txt b/620/CH3/EX3.12/example3_12.txt
new file mode 100644
index 000000000..f8a9d5ab8
--- /dev/null
+++ b/620/CH3/EX3.12/example3_12.txt
@@ -0,0 +1,3 @@
+ the efficeiency (in %) of the power supply is
+
+ 60. \ No newline at end of file