Explore
Connect
Documentation
Snippets
Log in
Sign up
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include
<iostream>
using
namespace
std;
int
add_two(
int
a,
int
b) {
return
a + b;
}
int
main() {
// print the value 3 returned by add_two(1, 2)
cout << add_two(
1
,
2
) << endl;
return
0
;
}
Enter to Rename, Shift+Enter to Preview
Run