MAT_222_Week_5_Discussion
it’s a simple math program using method Add as the call function the user inputs two numbers and the program the two numbers together #include iostream using namespace std; int method Add(int k ,int l) { return k+l; } int main() { int r,t; cout "Enter first number:" endl; cinr; cout "Enter second number:" endl; cint; int answer =method Add(r,t); cout "Sum of two number is :" answer endl; return 0
Written for
- Institution
- Ashford University
- Course
- MAT 222 (MAT222)
Document information
- Uploaded on
- July 31, 2021
- Number of pages
- 2
- Written in
- 2020/2021
- Type
- Exam (elaborations)
- Contains
- Questions & answers
Subjects
-
mat 222
-
t’s a simple math program using methodadd as the call function the user inputs two numbers and the program the two numbers together include ltiostreamgt using namespace std int methodadd