diff options
| author | Arthur Spears <[email protected]> | 2024-02-03 13:07:25 -0800 |
|---|---|---|
| committer | Arthur Spears <[email protected]> | 2024-02-03 13:07:25 -0800 |
| commit | ed2dc4c46adae870285806856740ea6dd456ead7 (patch) | |
| tree | c66ad4c9c245b2b4fe060242b8b32cb9f8b95611 /Excersize 5.cpp | |
| parent | added excersize 5 into file. (diff) | |
| download | in-class-exercise-5-connormcdowell275-ed2dc4c46adae870285806856740ea6dd456ead7.tar.xz in-class-exercise-5-connormcdowell275-ed2dc4c46adae870285806856740ea6dd456ead7.zip | |
Added .gitignore
Diffstat (limited to 'Excersize 5.cpp')
| -rw-r--r-- | Excersize 5.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Excersize 5.cpp b/Excersize 5.cpp index 6362e6e..69eac61 100644 --- a/Excersize 5.cpp +++ b/Excersize 5.cpp @@ -7,12 +7,28 @@ #include "helper.h" +using std::cout; +using std::endl; + int main() { int mySum = sum(15, 30); std::cout << mySum << std::endl; + cout << returnInt() << endl; + + cout << sum(10, 15) << endl; + + cout << percentage(10, 100) << "%" << endl; + + cout << percentage(23, 100) << "%" << endl; + + cout << percentage(56, 100) << "%" << endl; + + cout << FtoC(32) << endl; + + cout << CtoF(212) << endl; } |