summaryrefslogtreecommitdiff
path: root/math.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'math.cpp')
-rw-r--r--math.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/math.cpp b/math.cpp
new file mode 100644
index 0000000..5aeebfd
--- /dev/null
+++ b/math.cpp
@@ -0,0 +1,17 @@
+#include <iostream>
+#include "math.h"
+
+int getNumberFromUser()
+{
+ std::cout << "Enter an integer: " ;
+ int x ;
+ std::cin >> x ;
+ return x ;
+}
+
+int doubleNumber(int x)
+{
+ //int z { 3 } ;
+ //z = z * 2 ;
+ return x * 2 ;
+}
bgstack15