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
Geschreven voor
- Instelling
-
Ashford University
- Vak
-
MAT 222 (MAT222)
Documentinformatie
- Geüpload op
- 31 juli 2021
- Aantal pagina's
- 2
- Geschreven in
- 2020/2021
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
- 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