diff options
Diffstat (limited to 'Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.11')
-rw-r--r-- | Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.11/Ex3_11.R | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.11/Ex3_11.R b/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.11/Ex3_11.R new file mode 100644 index 00000000..8d21e8a1 --- /dev/null +++ b/Numerical_Methods_by_E_Balaguruswamy/CH3/EX3.11/Ex3_11.R @@ -0,0 +1,12 @@ +# Example 11 Chapter 3 Page no.: 53
+# Integer Arithmetics
+
+a <- 25
+b <- 12
+
+cat("Addition :",a,"+",b,"=",a+b)
+cat("Subtraction :",a,"-",b,"=",a-b)
+cat(" :",b,"-",a,"=",b-a)
+cat("Multiplication :",a,"x",b,"=",a*b)
+cat("Division :",a,"/",b,"=",as.integer(a/b))
+cat("Division :",b,"/",a,"=",as.integer(b/a))
\ No newline at end of file |