diff options
| author | Connor McDowell <[email protected]> | 2024-01-25 17:40:27 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-01-25 17:40:27 -0800 |
| commit | b903b5cc5f8135d8450cb573daba0c6cf9f8137a (patch) | |
| tree | 429678c30842d7da566078cc795cf1c11aa2b38c /Excersize 6.cpp | |
| parent | ready 1 (diff) | |
| download | archived-in-class-exercise-6-connormcdowell275-b903b5cc5f8135d8450cb573daba0c6cf9f8137a.tar.xz archived-in-class-exercise-6-connormcdowell275-b903b5cc5f8135d8450cb573daba0c6cf9f8137a.zip | |
functions and returns added
Diffstat (limited to 'Excersize 6.cpp')
| -rw-r--r-- | Excersize 6.cpp | 34 |
1 files changed, 26 insertions, 8 deletions
diff --git a/Excersize 6.cpp b/Excersize 6.cpp index b4af816..ad1e3a2 100644 --- a/Excersize 6.cpp +++ b/Excersize 6.cpp @@ -7,21 +7,39 @@ #include "helper.h" + int main() { - int mySum = sum(15, 30); - std::cout << mySum << std::endl; - std::cout << returnInt() << std::endl; - std::cout << percentage(40, 78) << std::endl; - std::cout << FtoC(56) << std::endl; - std::cout << CtoF(120) << std::endl; + + return 0; +} + +int math() +{ + + + return 0; +} + +int math(int square = 2) +{ + + + return square * square; +} + +int math(int a, int b) +{ + + + return a + b; } -int returnInt() +int math(int A, int B, int C, int x) { - return 10; + return A * x * x - B * x + C; } |