end of w2lec1
This commit is contained in:
16
Lecture/Week2/main.cpp
Normal file
16
Lecture/Week2/main.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
int & multiply(int A, int B) {
|
||||
int i = A*B;
|
||||
return i;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int A = 5;
|
||||
int B = 3;
|
||||
int C = multiply(A,B);
|
||||
cout << "A: " << A << " B: " << B << " C: " << C << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user