diff options
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp new file mode 100644 index 0000000..477e05a --- /dev/null +++ b/Project1/program.cpp @@ -0,0 +1,44 @@ + + + +#include <iostream> + +#include "helpers.h" + + +int main() +{ + std::cout << math_func() << std::endl; + + std::cout << math_func(2) << std::endl; + + std::cout << math_func(2,4) << std::endl; + + std::cout << math_func(5, 7, 8) << std::endl; + + return 0; +} + +int math_func() +{ + + return 1; +} + +int math_func(int square) +{ + + return square * square; +} + +int math_func(int a, int b) +{ + + return a + b; +} + +int math_func(int A, int B, int C, int x) +{ + + return (A * x * x) - (B * x) + C; +}
\ No newline at end of file |