diff options
Diffstat (limited to '1427/CH5/EX5.9/5_9.sce')
-rw-r--r-- | 1427/CH5/EX5.9/5_9.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/1427/CH5/EX5.9/5_9.sce b/1427/CH5/EX5.9/5_9.sce new file mode 100644 index 000000000..f21d901d5 --- /dev/null +++ b/1427/CH5/EX5.9/5_9.sce @@ -0,0 +1,12 @@ +//ques-5.9
+//Calculating pH of two samples
+clc
+
+//Part (i)
+c=0.001;//molarity of HCl
+p1=-log10(c);//pH of HCl
+
+//Part (ii)
+c=0.04;//molarity of HNO3
+p2=-log10(4*10^12);//pH of HNO3
+printf("pH value of HCl is %.0f and pH of nitric acid is %.3f.",p1,p2);
|