aboutsummaryrefslogtreecommitdiff
path: root/Project1/helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/helpers.h')
-rw-r--r--Project1/helpers.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/Project1/helpers.h b/Project1/helpers.h
index 6f70f09..606bef3 100644
--- a/Project1/helpers.h
+++ b/Project1/helpers.h
@@ -1 +1,13 @@
-#pragma once
+#ifndef FUNCTIONS_H
+#define FUNCTIONS_H
+
+#include <iostream>
+
+class RecursiveFunctions {
+public:
+ static long factorial(int n); // integer n returns its factorial as a long
+ static int fibonacci(int n); // integer n returns the nth term in the fibonacci sequence
+ static double power(double base, int exponent); //double base and an integer exponent returns base raised to the exponent power
+};
+
+#endif