diff options
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; } |