summaryrefslogtreecommitdiff
path: root/2234/CH4/EX4.7/ex4_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '2234/CH4/EX4.7/ex4_7.sce')
-rwxr-xr-x2234/CH4/EX4.7/ex4_7.sce6
1 files changed, 6 insertions, 0 deletions
diff --git a/2234/CH4/EX4.7/ex4_7.sce b/2234/CH4/EX4.7/ex4_7.sce
new file mode 100755
index 000000000..fcf8d7d3b
--- /dev/null
+++ b/2234/CH4/EX4.7/ex4_7.sce
@@ -0,0 +1,6 @@
+clc;
+Va=-10; //voltage in volts
+W=100; //work in Joule
+q=2; //charge in Coulomb
+v=(Va)+(W/q); //calculating v
+disp(v,"Voltage in Volts = "); //displaying result \ No newline at end of file